Skip to content
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

TensorflowEmitter has not supported operator [sum]. #15

Closed
dhaase-de opened this issue Dec 1, 2017 · 2 comments
Closed

TensorflowEmitter has not supported operator [sum]. #15

dhaase-de opened this issue Dec 1, 2017 · 2 comments
Assignees

Comments

@dhaase-de
Copy link
Contributor

This happened to me when converting a Caffe ResNet model to TensorFlow. I used Python 3 and MMdnn-0.1.1, installed via pip.

@kitstar
Copy link
Contributor

kitstar commented Dec 1, 2017

Hi @dhaase-de , could you try to edit the mapper.py
around line 199

    def map_eltwise(cls, node):
        operations = {0: 'mul', 1: 'sum', 2: 'max'}

to

    def map_eltwise(cls, node):
        operations = {0: 'Mul', 1: 'Add', 2: 'Max'}

And see if it works. Thanks.

@dhaase-de
Copy link
Contributor Author

With your suggested edit, the export finishes without errors. I don't have the time now to verify the exported TensorFlow net, but the code looks good and it loads without errors in Python 3. Thanks!

@kitstar kitstar closed this as completed Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants