microsoft / MMdnn

MMdnn is a set of tools to help users inter-operate among different deep learning frameworks. E.g. model conversion and visualization. Convert models between Caffe, Keras, MXNet, Tensorflow, CNTK, PyTorch Onnx and CoreML.
MIT License
5.8k stars 965 forks source link

Tensorflow has not supported operator [Elu] with name [elu1/Elu]. #873

Open Zrufy opened 4 years ago

Zrufy commented 4 years ago

Platform (like ubuntu 16.04/win10): Windows 10

Python version: 3.6

Source framework with version (like Tensorflow 1.4.1 with GPU):Tensorflow 1,14

Destination framework with version (like CNTK 2.3 with GPU):Onnx

Pre-trained model path (webpath or webdisk path):

Running scripts: mmtoir -f tensorflow -w model.pb --inNodeName input_1 --inputShape 224,224,3 --dstNodeName act_softmax/Softmax -o mobilenet

linmajia commented 4 years ago

@Zrufy , thank you very much for the feedback. Are you using TF mobilenet? It seems to use Relu6 only instead of Elu.

Zrufy commented 4 years ago

I was trying to bring the ssd model of this project to pytorch or onnx. I encountered many difficulties. However I solved it by transforming the activations from elu to relu.

JiahaoYao commented 4 years ago

Hi @Zrufy, would you like to share your original model with ELU?