export failure: Exporting the operator silu to ONNX opset version 12 is not supported. Please open a bug to request ONNX export support for the missing operator
怀疑低版本的opset不支持
运行问题依旧
该版本的opset不支持silu操作
个人路径+Lib\site-packages\torch\nn\modules\ activation.py
activation.py 这个文件,修改第394行代码
def forward(self, input: Tensor) -> Tensor: return input * torch.sigmoid(input) # 改成这一行代码 #return F.silu(input, inplace=self.inplace)//原代码