-
Notifications
You must be signed in to change notification settings - Fork 2k
[converter] Fix mobilenet conversion problem #2468
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
Conversation
pyu10055
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 1 of 1 approvals obtained (waiting on @dsmilkov, @nsthorat, and @pyu10055)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py, line 225 at r1 (raw file):
graph = tf.Graph() fuse_prelu.register_prelu_func(graph)
you can remove the register_prelu func as well
dsmilkov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 1 of 1 approvals obtained (waiting on @nsthorat and @pyu10055)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py, line 225 at r1 (raw file):
Previously, pyu10055 (Ping Yu) wrote…
you can remove the register_prelu func as well
i can't unfortunately because it's used elsewhere, in between optimization passes
nsthorat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status:complete! 2 of 1 approvals obtained (waiting on @nsthorat and @pyu10055)
dsmilkov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 2 of 1 approvals obtained (waiting on @pyu10055)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py, line 225 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
i can't unfortunately because it's used elsewhere, in between optimization passes
actually, turns out we can since we never reimport the graph after adding prelu
Fixes #2467
There is no need to re-import the graph after fusing just to extract the tensor values since there is a util method that can return
np.arrayfrom aTensorProto.BUG
This change is