-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
导出onnx模型报错 #98
Comments
@cendelian 我也遇到同样问题,请问你解决了吗 |
@SWHL RuntimeError: ONNX export failed: Couldn't export operator aten::threshold |
def forward(self, x):
x = (self.slope * x) + self.offset
x = torch.clamp(-x, min=-1)
x = torch.clamp(-x, min=0)
return x |
感谢,转成功了,大佬你试过onnx-simplifier然后转ncnn吗? |
这个没有试过了 |
大佬您好,我在导出onnx模型时有fail,没有成功导出onnx模型文件,如下:
UserWarning: ONNX export failed on threshold because non-zero threshold not supported
请问有办法解决吗
The text was updated successfully, but these errors were encountered: