-
Notifications
You must be signed in to change notification settings - Fork 434
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
Python API not passing custom ops and rewriters properly #1707
Comments
Hi @vloncar, you are correct. Thanks for the investigation and report. #1708 should fix the issue. By the way, custom_op_handlers is deprecated and you may find it easier to use
Example:
Just curious, what op handlers are you registering? |
Hi, thanks for the quick fix. I'm using the feature to parse quantized layers to a custom onnx op. One extra question: is there maybe a way to use the graph manipulation tools on an existing ONNX model? For example I would like to insert nodes after the model was fully optimized (i.e. it has gemm nodes and the bias has been fused into the conv layer) |
@vloncar Maybe the easiest thing would be cloning the tf2onnx repo. Then you can edit/add any editing steps you want. |
Describe the bug
from_keras()
,from_function()
andfrom_graph_def()
functions incorrectly processcustom_op_handlers
andcustom rewriter
parameters (maybe others as well, but these two I need). Thecustom_op_handlers
is not used, and insteadcustom_ops
is passed toprocess_tf_graph
in its place. Thecustom_rewriter
is ignored altogether, removing the possibility to use this feature.Urgency
None
System information
Doesn't matter
To Reproduce
Just try to pass something
custom_op_handlers
orcustom_rewriter
totf2onnx.convert.from_keras()
Screenshots
Not needed
Additional context
Not needed
The text was updated successfully, but these errors were encountered: