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

None Values not supported #1061

Open
vikramdattu opened this issue Jul 13, 2023 · 1 comment
Open

None Values not supported #1061

vikramdattu opened this issue Jul 13, 2023 · 1 comment

Comments

@vikramdattu
Copy link

Describe the bug

Getting None value not supported while converting a model using onnx-tf

ONNX model file

Cannot share the model ATM

Python, ONNX, ONNX-TF, Tensorflow version

This section can be obtained by running get_version.py from util folder.

  • Python version: 3.10
  • ONNX version: latest, installed from main branch of this repo
  • ONNX-TF version:
  • Tensorflow version:

While converting a speech model, I get following error:

    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/backend_tf_module.py", line 99, in __call__  *
        output_ops = self.backend._onnx_node_to_tensorflow_op(onnx_node,
    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/backend.py", line 347, in _onnx_node_to_tensorflow_op  *
        return handler.handle(node, tensor_dict=tensor_dict, strict=strict)
    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/handlers/handler.py", line 59, in handle  *
        return ver_handle(node, **kwargs)
    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/handlers/backend/shape.py", line 49, in version_13  *
        return cls._common(node, **kwargs)
    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/handlers/backend/shape.py", line 20, in _common  *
        return [cls.make_tensor_from_onnx_node(node, **kwargs)]
    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/handlers/backend_handler.py", line 157, in make_tensor_from_onnx_node  *
        return cls._run_tf_func(tf_func, inputs, attrs)
    File "/Users/vikramdattu/work/tflite-micro-esp-examples/tools/onnx_tflite/onnx-tensorflow/onnx_tf/handlers/backend_handler.py", line 237, in _run_tf_func  *
        return tf_func(**kwargs)

    ValueError: None values not supported.

While searching for similar issues raised here, looks like some other OPs are supported already with dynamic size but not this one.

@DeepFace-user
Copy link

I also encountered the same problem. I found that this happens under Apple Mac m1-m2. It will be normal under windows. There is indeed a problem with the version of the library. It seems to be incompatible with Tensorflow version 2.14 and onnx. I hope onnx can solve it. This problem is that it cannot be converted on Apple, but it can be converted on Windows. It is a very strange thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants