RuntimeError: Exporting the operator uniform to ONNX opset version 12 is not supported.

pt转onnx报错:

RuntimeError: Exporting the operator uniform to ONNX opset version 12 is not supported. 
Please open a bug to request ONNX export support for the missing operator.

原因考虑是转换的时候,不可以在forward中动态获取值再进行运算,而应该在init中就完成相应的操作。

不便上传图片,有问题留言。

你可能感兴趣的:(ML/DL,计算机视觉)