Skip to content

Op type not registered 'FeatureSize'. Failing to convert Tensorflow syntaxnet model to Onnx #1836

Closed
@miraclecorp

Description

@miraclecorp

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.

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions