Description
Describe the bug
tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'FeatureSize' in binary running on XXXXXXXXXX. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler
should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
- FeatureSize comes from parser_ops.cc (syntaxnet). https://git.dst.etit.tu-chemnitz.de/external/tf-models/-/blob/dfafba4a017c21c19dfdb60e1580f0b2ff5d361f/research/syntaxnet/syntaxnet/ops/parser_ops.cc
- Attempted to add the method in "~tf2onnx/custom_opset/ms.py" and use the flag "--custom-ops", but same error
- Attempted to copy "parser_ops.so" (which was created from docker) and placed into the custom_opset, but same error
Urgency
Early February
System information
- macOS Mojave
- Tensorflow Version: 2.7.0
- Python version: 3.9.7
To Reproduce
Model: syntaxnet
Describe steps/code to reproduce the behavior. Please upload/link the model you are trying to convert if possible.
python3 -m tf2onnx.convert --saved-model [my_model_here] --inputs inputs:0[-1] --output model.onnx --opset 13 --extra_opset ai.onnx.contrib:1 --tag serve;
Thank you so much!