Closed caelorza closed 1 year ago
The same error also occurs when using Softplus as the activation function.
I meet the same question. I don't find Tanh in _ACTIVATION_OP_TYPES of onnx_parser.py. Do you have any clue now?
@juan-campos fixed this bug in PR https://github.com/cog-imperial/OMLT/pull/121, which we've now merged. Would you take a look and see if this solves your problem? @juan-campos also added some tests to try to make sure we don't reintroduce this bug!
The problem has been solved. Thanks for wonderful work.
Using Tanh as an activation function returns the following error. Using other activation functions such as sigmoid or relu works fine.
ONNX version: 1.13.1 OMLT version: 1.1 Pytorch version: 2.0.1