(py38-open) (22-08-18 21:07:17) <0> [~/workplace/tf2onnx-open-source/tensorflow-onnx-clean] dev-dsk-congyc-2b-7bc0be83 % pip show tensorflow onnx onnxruntime numpy Name: tensorflow Version: 2.4.1 Summary: TensorFlow is an open source machine learning framework for everyone. Home-page: https://www.tensorflow.org/ Author: Google Inc. Author-email: packages@tensorflow.org License: Apache 2.0 Location: /local/home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages Requires: absl-py, astunparse, flatbuffers, gast, google-pasta, grpcio, h5py, keras-preprocessing, numpy, opt-einsum, protobuf, six, tensorboard, tensorflow-estimator, termcolor, typing-extensions, wheel, wrapt Required-by: --- Name: onnx Version: 1.12.0 Summary: Open Neural Network Exchange Home-page: https://github.com/onnx/onnx Author: ONNX Author-email: onnx-technical-discuss@lists.lfaidata.foundation License: Apache License v2.0 Location: /local/home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages Requires: numpy, protobuf, typing-extensions Required-by: tf2onnx --- Name: onnxruntime Version: 1.12.1 Summary: ONNX Runtime is a runtime accelerator for Machine Learning models Home-page: https://onnxruntime.ai Author: Microsoft Corporation Author-email: onnxruntime@microsoft.com License: MIT License Location: /local/home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages Requires: coloredlogs, flatbuffers, numpy, packaging, protobuf, sympy Required-by: --- Name: numpy Version: 1.19.5 Summary: NumPy is the fundamental package for array computing with Python. Home-page: https://www.numpy.org Author: Travis E. Oliphant et al. Author-email: License: BSD Location: /local/home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages Requires: Required-by: h5py, Keras-Preprocessing, onnx, onnxruntime, opt-einsum, tensorboard, tensorflow, tf2onnx (py38-open) (22-08-18 21:07:35) <0> [~/workplace/tf2onnx-open-source/tensorflow-onnx-clean] dev-dsk-congyc-2b-7bc0be83 % python setup.py test /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( running pytest /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Searching for pyyaml Best match: PyYAML 6.0 Processing PyYAML-6.0-py3.8-linux-x86_64.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/PyYAML-6.0-py3.8-linux-x86_64.egg Searching for pytest-cov Best match: pytest-cov 3.0.0 Processing pytest_cov-3.0.0-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/pytest_cov-3.0.0-py3.8.egg Searching for pytest Best match: pytest 7.1.2 Processing pytest-7.1.2-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/pytest-7.1.2-py3.8.egg Searching for parameterized Best match: parameterized 0.8.1 Processing parameterized-0.8.1-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/parameterized-0.8.1-py3.8.egg Searching for graphviz Best match: graphviz 0.20.1 Processing graphviz-0.20.1-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/graphviz-0.20.1-py3.8.egg Searching for coverage[toml]>=5.2.1 Best match: coverage 6.4.4 Processing coverage-6.4.4-py3.8-linux-x86_64.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/coverage-6.4.4-py3.8-linux-x86_64.egg Searching for tomli>=1.0.0 Best match: tomli 2.0.1 Processing tomli-2.0.1-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/tomli-2.0.1-py3.8.egg Searching for py>=1.8.2 Best match: py 1.11.0 Processing py-1.11.0-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/py-1.11.0-py3.8.egg Searching for pluggy<2.0,>=0.12 Best match: pluggy 1.0.0 Processing pluggy-1.0.0-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/pluggy-1.0.0-py3.8.egg Searching for iniconfig Best match: iniconfig 1.1.1 Processing iniconfig-1.1.1-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/iniconfig-1.1.1-py3.8.egg Searching for attrs>=19.2.0 Best match: attrs 22.1.0 Processing attrs-22.1.0-py3.8.egg Using /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/.eggs/attrs-22.1.0-py3.8.egg running egg_info writing tf2onnx.egg-info/PKG-INFO writing dependency_links to tf2onnx.egg-info/dependency_links.txt writing requirements to tf2onnx.egg-info/requires.txt writing top-level names to tf2onnx.egg-info/top_level.txt reading manifest file 'tf2onnx.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'tf2onnx.egg-info/SOURCES.txt' running build_ext 2022-08-18 21:07:45,676 - INFO - TestConfig: platform=linux tf_version=2.4.1 opset=13 target=[''] skip_tflite_tests=False skip_tfjs_tests=False skip_tf_tests=False run_tfl_consistency_test=False backend=onnxruntime backend_version=1.12.1 is_debug_mode=False temp_dir=/tmp/tmpeayv3_57 ================================================================================================================================================ test session starts ================================================================================================================================================ platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0 rootdir: /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean, configfile: setup.cfg plugins: cov-3.0.0 collected 932 items tests/test_api.py ......s.. [ 0%] tests/test_backend.py ..................................s..s............................ss..........s........................s......s..s...s.....................s....sss.........ss.........s...........................................s...........sss..............sss.................................... [ 30%] ................................s..................FFFF............s..........................s...s..s........s..............................................................s... [ 49%] tests/test_cond.py .............. [ 51%] tests/test_const_fold.py s.. [ 51%] tests/test_convert.py ........ [ 52%] tests/test_cudnn.py s [ 52%] tests/test_cudnn_compatible_gru.py ssssssssssssssss [ 54%] tests/test_custom_rnncell.py .ssssssssss [ 55%] tests/test_einsum_helper.py .................s...ss. [ 58%] tests/test_einsum_ml.py ......... [ 59%] tests/test_einsum_optimizers.py .... [ 59%] tests/test_example.py ... [ 59%] tests/test_gru.py ...................... [ 62%] tests/test_grublock.py ssssssssssssssss [ 63%] tests/test_internals.py ........... [ 65%] tests/test_loops.py ....s....... [ 66%] tests/test_lstm.py s......................... [ 69%] tests/test_lstmblock.py sssssssssssssssss [ 71%] tests/test_onnx_shape_inference.py .........s.......s..... [ 73%] tests/test_optimizers.py s...........s.....s.............................................................ss........................sss..................sssssss..........sssssss........ss..........................ss..ss...sss..ss..ss........ss [ 96%] tests/test_profile.py . [ 96%] tests/test_seq2seq.py ss [ 97%] tests/test_stacked_lstm.py s [ 97%] tests/test_string_ops.py ssssssssss [ 98%] tests/test_tf_shape_inference.py .ssssss [ 99%] tests/test_tfjs_runner.py . [ 99%] tests/test_tflite_postprocess.py ...... [ 99%] tests/test_tflite_utils.py .. [100%] ===================================================================================================================================================== FAILURES ====================================================================================================================================================== ____________________________________________________________________________________________________________________________________________ BackendTests.test_rfft_ops _____________________________________________________________________________________________________________________________________________ self = def test(self): tmp = config.skip_tfjs_tests config.skip_tfjs_tests = True try: > func(self) tests/common.py:203: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_backend.py:5683: in test_rfft_ops self._run_test_case(func1, [_OUTPUT], {_INPUT: x_val}) tests/test_backend.py:177: in _run_test_case return self.run_test_case(func, feed_dict, [], output_names_with_port, **kwargs) tests/backend_test_base.py:427: in run_test_case g = process_tf_graph(None, opset=self.config.opset, tf2onnx/tfonnx.py:464: in process_tf_graph g = process_graphs(main_g, subgraphs, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:516: in process_graphs g = process_parsed_graph(main_g, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:627: in process_parsed_graph raise exceptions[0] tf2onnx/tfonnx.py:292: in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) tf2onnx/onnx_opset/signal.py:906: in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) tf2onnx/onnx_opset/signal.py:465: in any_version_2d utils.make_sure( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bool_val = False, error_msg = 'Current implementation of RFFT2D only allows ComplexAbs as consumer not %r', args = ({'Reshape'},) def make_sure(bool_val, error_msg, *args): if not bool_val: > raise ValueError("make_sure failure: " + error_msg % args) E ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} tf2onnx/utils.py:264: ValueError ----------------------------------------------------------------------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------------------------------------------------------------------ 2022-08-18 21:12:13.230973: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:13.231076: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:13.231252: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.234233: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.002ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:13.245148: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.246803: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:13.246876: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:13.247024: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.250241: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.229ms. function_optimizer: function_optimizer did nothing. time = 0.003ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.033ms. constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.072ms. function_optimizer: function_optimizer did nothing. time = 0.003ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.021ms. 2022-08-18 21:12:13.254729: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.256199: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:13.256265: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:13.256422: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.259005: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.001ms. function_optimizer: function_optimizer did nothing. time = 0.001ms. 2022-08-18 21:12:13.263309: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:13.263376: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:13.263526: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.266120: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.001ms. function_optimizer: function_optimizer did nothing. time = 0.001ms. 2022-08-18 21:12:13.270961: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:316] Ignored output_format. 2022-08-18 21:12:13.270983: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:319] Ignored drop_control_dependency. 2022-08-18 21:12:13.279655: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:13.285810: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.333571: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:13.340381: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:13.350257: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13.352970: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:13,362 - ERROR - Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [3, 1, 4], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[3, 1, 3], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} 2022-08-18 21:12:13,363 - ERROR - Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [3, 3], 14\nOutpus:\n\toutput_raw_output___22:0=[3, 3], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [3, 3] ------------------------------------------------------------------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------------------------------------------------------------------- ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [3, 1, 4], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[3, 1, 3], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [3, 3], 14\nOutpus:\n\toutput_raw_output___22:0=[3, 3], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [3, 3] _______________________________________________________________________________________________________________________________________ BackendTests.test_rfft_ops_fft_length _______________________________________________________________________________________________________________________________________ self = def test(self): tmp = config.skip_tfjs_tests config.skip_tfjs_tests = True try: > func(self) tests/common.py:203: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_backend.py:5706: in test_rfft_ops_fft_length self._run_test_case(func1_length, [_OUTPUT], {_INPUT: x_val}) tests/test_backend.py:177: in _run_test_case return self.run_test_case(func, feed_dict, [], output_names_with_port, **kwargs) tests/backend_test_base.py:427: in run_test_case g = process_tf_graph(None, opset=self.config.opset, tf2onnx/tfonnx.py:464: in process_tf_graph g = process_graphs(main_g, subgraphs, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:516: in process_graphs g = process_parsed_graph(main_g, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:627: in process_parsed_graph raise exceptions[0] tf2onnx/tfonnx.py:292: in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) tf2onnx/onnx_opset/signal.py:906: in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) tf2onnx/onnx_opset/signal.py:465: in any_version_2d utils.make_sure( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bool_val = False, error_msg = 'Current implementation of RFFT2D only allows ComplexAbs as consumer not %r', args = ({'Reshape'},) def make_sure(bool_val, error_msg, *args): if not bool_val: > raise ValueError("make_sure failure: " + error_msg % args) E ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} tf2onnx/utils.py:264: ValueError ----------------------------------------------------------------------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------------------------------------------------------------------ 2022-08-18 21:12:14.565698: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:14.565821: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:14.566021: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.569155: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.001ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:14.580409: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.582174: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:14.582252: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:14.582399: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.585723: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.242ms. function_optimizer: function_optimizer did nothing. time = 0.003ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.032ms. constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.074ms. function_optimizer: function_optimizer did nothing. time = 0.002ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.02ms. 2022-08-18 21:12:14.590728: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.592254: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:14.592330: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:14.592502: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.595179: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.001ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:14.599982: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:14.600055: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:14.600198: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.602793: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.002ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:14.608136: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:316] Ignored output_format. 2022-08-18 21:12:14.608160: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:319] Ignored drop_control_dependency. 2022-08-18 21:12:14.618913: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:14.625910: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.688358: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:14.695521: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:14.706172: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14.709056: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:14,719 - ERROR - Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [3, 1, 9], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[3, 1, 5], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} 2022-08-18 21:12:14,720 - ERROR - Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [3, 5], 14\nOutpus:\n\toutput_raw_output___27:0=[3, 5], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [3, 5] ------------------------------------------------------------------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------------------------------------------------------------------- ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [3, 1, 9], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[3, 1, 5], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [3, 5], 14\nOutpus:\n\toutput_raw_output___27:0=[3, 5], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [3, 5] ____________________________________________________________________________________________________________________________________ BackendTests.test_rfft_ops_fft_length_many _____________________________________________________________________________________________________________________________________ self = def test(self): tmp = config.skip_tfjs_tests config.skip_tfjs_tests = True try: > func(self) tests/common.py:203: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_backend.py:5720: in test_rfft_ops_fft_length_many self._run_test_case(func1_length, [_OUTPUT], {_INPUT: x_val}) tests/test_backend.py:177: in _run_test_case return self.run_test_case(func, feed_dict, [], output_names_with_port, **kwargs) tests/backend_test_base.py:427: in run_test_case g = process_tf_graph(None, opset=self.config.opset, tf2onnx/tfonnx.py:464: in process_tf_graph g = process_graphs(main_g, subgraphs, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:516: in process_graphs g = process_parsed_graph(main_g, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:627: in process_parsed_graph raise exceptions[0] tf2onnx/tfonnx.py:292: in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) tf2onnx/onnx_opset/signal.py:906: in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) tf2onnx/onnx_opset/signal.py:465: in any_version_2d utils.make_sure( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bool_val = False, error_msg = 'Current implementation of RFFT2D only allows ComplexAbs as consumer not %r', args = ({'Reshape'},) def make_sure(bool_val, error_msg, *args): if not bool_val: > raise ValueError("make_sure failure: " + error_msg % args) E ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} tf2onnx/utils.py:264: ValueError ----------------------------------------------------------------------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------------------------------------------------------------------ 2022-08-18 21:12:15.481044: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:15.481166: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:15.481367: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.484351: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.003ms. function_optimizer: function_optimizer did nothing. time = 0.001ms. 2022-08-18 21:12:15.495266: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.497118: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:15.497199: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:15.497352: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.500616: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.247ms. function_optimizer: function_optimizer did nothing. time = 0.003ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.054ms. constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.085ms. function_optimizer: function_optimizer did nothing. time = 0.003ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.023ms. 2022-08-18 21:12:15.505322: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.506809: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:15.506879: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:15.507026: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.509700: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.001ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:15.514439: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:15.514514: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:15.514656: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.517302: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.001ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:15.522429: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:316] Ignored output_format. 2022-08-18 21:12:15.522451: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:319] Ignored drop_control_dependency. 2022-08-18 21:12:15.532843: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:15.539363: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.587954: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:15.594736: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:15.604301: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15.606851: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:15,615 - ERROR - Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [4, 1, 4], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[4, 1, 3], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} 2022-08-18 21:12:15,616 - ERROR - Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [4, 3], 14\nOutpus:\n\toutput_raw_output___22:0=[4, 3], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [4, 3] ------------------------------------------------------------------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------------------------------------------------------------------- ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [4, 1, 4], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[4, 1, 3], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [4, 3], 14\nOutpus:\n\toutput_raw_output___22:0=[4, 3], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [4, 3] _________________________________________________________________________________________________________________________________ BackendTests.test_rfft_ops_fft_length_many_bigger _________________________________________________________________________________________________________________________________ self = @check_tf_min_version("1.14") @check_opset_min_version(10, "Slice") def test_rfft_ops_fft_length_many_bigger(self): for i in range(4, 7): for j in range(4, 7): for m in range(0, 3): with self.subTest(shape=(i, j), fft_length=j+m): x_val = make_xval([i, j]).astype(np.float32) / 10 def func1_length(x): op_ = tf.signal.rfft(x, np.array([j+m], dtype=np.int32)) return tf.abs(op_, name=_TFOUTPUT) > self._run_test_case(func1_length, [_OUTPUT], {_INPUT: x_val}) tests/test_backend.py:5733: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_backend.py:177: in _run_test_case return self.run_test_case(func, feed_dict, [], output_names_with_port, **kwargs) tests/backend_test_base.py:427: in run_test_case g = process_tf_graph(None, opset=self.config.opset, tf2onnx/tfonnx.py:464: in process_tf_graph g = process_graphs(main_g, subgraphs, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:516: in process_graphs g = process_parsed_graph(main_g, custom_op_handlers, inputs_as_nchw, outputs_as_nchw, continue_on_error, tf2onnx/tfonnx.py:627: in process_parsed_graph raise exceptions[0] tf2onnx/tfonnx.py:292: in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) tf2onnx/onnx_opset/signal.py:906: in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) tf2onnx/onnx_opset/signal.py:465: in any_version_2d utils.make_sure( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bool_val = False, error_msg = 'Current implementation of RFFT2D only allows ComplexAbs as consumer not %r', args = ({'Reshape'},) def make_sure(bool_val, error_msg, *args): if not bool_val: > raise ValueError("make_sure failure: " + error_msg % args) E ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} tf2onnx/utils.py:264: ValueError ----------------------------------------------------------------------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------------------------------------------------------------------ 2022-08-18 21:12:16.513960: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:16.514089: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:16.514289: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.517356: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.002ms. function_optimizer: function_optimizer did nothing. time = 0.001ms. 2022-08-18 21:12:16.528476: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.530278: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:16.530357: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:16.530507: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.533823: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.245ms. function_optimizer: function_optimizer did nothing. time = 0.003ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.033ms. constant_folding: Graph size after: 4 nodes (0), 3 edges (0), time = 0.072ms. function_optimizer: function_optimizer did nothing. time = 0.002ms. dependency_optimizer: Graph size after: 4 nodes (0), 3 edges (0), time = 0.021ms. 2022-08-18 21:12:16,539 - WARNING - Tensorflowjs.converters package imports failed. 2022-08-18 21:12:16.539580: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.541128: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:16.541200: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:16.541346: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.544032: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.002ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:16.548605: I tensorflow/core/grappler/devices.cc:69] Number of eligible GPUs (core count >= 8, compute capability >= 0.0): 0 2022-08-18 21:12:16.548682: I tensorflow/core/grappler/clusters/single_machine.cc:356] Starting new session 2022-08-18 21:12:16.548826: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.551428: I tensorflow/core/grappler/optimizers/meta_optimizer.cc:928] Optimization results for grappler item: graph_to_optimize function_optimizer: function_optimizer did nothing. time = 0.002ms. function_optimizer: function_optimizer did nothing. time = 0ms. 2022-08-18 21:12:16.556804: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:316] Ignored output_format. 2022-08-18 21:12:16.556826: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:319] Ignored drop_control_dependency. 2022-08-18 21:12:16.567256: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:16.573801: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.622308: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:16.629279: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set INFO: TfLiteFlexDelegate delegate: 2 nodes delegated out of 4 nodes with 2 partitions. 2022-08-18 21:12:16.638512: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16.640948: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2022-08-18 21:12:16,649 - ERROR - Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [4, 1, 4], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[4, 1, 3], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} 2022-08-18 21:12:16,650 - ERROR - Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [4, 3], 14\nOutpus:\n\toutput_raw_output___22:0=[4, 3], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [4, 3] ------------------------------------------------------------------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------------------------------------------------------------------- WARNING BackendTests:backend_test_base.py:207 Tensorflowjs.converters package imports failed. ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'rfft4' (fct=>) 'OP=RFFT2D\nName=rfft4\nInputs:\n\trfft3=Reshape, [4, 1, 4], 1\n\trfft=Const, [2], 6\nOutpus:\n\trfft4=[4, 1, 3], 14' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 906, in version_13 return cls.any_version_2d(True, 13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 465, in any_version_2d utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} ERROR tf2onnx.tfonnx:tfonnx.py:302 Failed to convert node 'output' (fct=>) 'OP=ComplexAbs\nName=output\nInputs:\n\trfft5=Reshape, [4, 3], 14\nOutpus:\n\toutput_raw_output___22:0=[4, 3], 1' Traceback (most recent call last): File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/tfonnx.py", line 292, in tensorflow_onnx_mapping func(g, node, **kwargs, initialized_tables=initialized_tables, dequantize=dequantize) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 981, in version_13 cls.any_version(13, ctx, node, **kwargs) File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/onnx_opset/signal.py", line 939, in any_version utils.make_sure( File "/workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tf2onnx/utils.py", line 264, in make_sure raise ValueError("make_sure failure: " + error_msg % args) ValueError: make_sure failure: ComplexAbs expected the first dimension to be 2 but shape is [4, 3] ================================================================================================================================================= warnings summary ================================================================================================================================================== ../../../../home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py:22 /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py:22: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp tests/common.py:488: 3 warnings tests/test_backend.py: 1 warning tests/test_cond.py: 1 warning tests/test_custom_rnncell.py: 1 warning tests/test_gru.py: 1 warning tests/test_onnx_shape_inference.py: 1 warning tests/test_tf_shape_inference.py: 1 warning tests/test_tflite_postprocess.py: 1 warning tests/test_tflite_utils.py: 1 warning /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:488: DeprecationWarning: testcase_func_name= is deprecated; use name_func= return parameterized.expand(opsets, testcase_func_name=_custom_name_func) tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_backend.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_cond.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_custom_rnncell.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_gru.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_onnx_shape_inference.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_tf_shape_inference.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_tflite_postprocess.py) class TestConfig(object): tests/common.py:58 /workplace/congyc/tf2onnx-open-source/tensorflow-onnx-clean/tests/common.py:58: PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a __init__ constructor (from: tests/test_tflite_utils.py) class TestConfig(object): tests/test_convert.py::Tf2OnnxConvertTest::test_convert_checkpoint tests/test_convert.py::Tf2OnnxConvertTest::test_convert_large_model tests/test_convert.py::Tf2OnnxConvertTest::test_convert_output_frozen_graph tests/test_convert.py::Tf2OnnxConvertTest::test_convert_saved_model /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/framework/meta_graph.py:813: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. distutils_version.LooseVersion(tf_version) tests/test_convert.py::Tf2OnnxConvertTest::test_convert_checkpoint tests/test_convert.py::Tf2OnnxConvertTest::test_convert_large_model tests/test_convert.py::Tf2OnnxConvertTest::test_convert_output_frozen_graph tests/test_convert.py::Tf2OnnxConvertTest::test_convert_saved_model /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/framework/meta_graph.py:814: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. >= distutils_version.LooseVersion("1.9")) tests/test_gru.py: 20 warnings /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py:529: UserWarning: `tf.nn.rnn_cell.GRUCell` is deprecated and will be removed in a future version. This class is equivalent as `tf.keras.layers.GRUCell`, and will be replaced by that in Tensorflow 2.0. warnings.warn("`tf.nn.rnn_cell.GRUCell` is deprecated and will be removed " tests/test_gru.py: 20 warnings tests/test_lstm.py: 23 warnings /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py:2281: UserWarning: `layer.add_variable` is deprecated and will be removed in a future version. Please use `layer.add_weight` method instead. warnings.warn('`layer.add_variable` is deprecated and ' tests/test_gru.py: 20 warnings tests/test_lstm.py: 23 warnings /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py:1402: UserWarning: `layer.updates` will be removed in a future version. This property should not be used in TensorFlow 2.0, as `updates` are applied automatically. warnings.warn('`layer.updates` will be removed in a future version. ' tests/test_lstm.py: 23 warnings /home/congyc/anaconda3/envs/py38-open/lib/python3.8/site-packages/tensorflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py:903: UserWarning: `tf.nn.rnn_cell.LSTMCell` is deprecated and will be removed in a future version. This class is equivalent as `tf.keras.layers.LSTMCell`, and will be replaced by that in Tensorflow 2.0. warnings.warn("`tf.nn.rnn_cell.LSTMCell` is deprecated and will be " -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.8.13-final-0 ----------- Name Stmts Miss Cover --------------------------------------------------------------------------- tf2onnx/__init__.py 6 0 100% tf2onnx/constants.py 28 0 100% tf2onnx/convert.py 336 123 63% tf2onnx/custom_opsets/__init__.py 4 0 100% tf2onnx/custom_opsets/ms.py 74 5 93% tf2onnx/custom_opsets/onnx_ml.py 69 2 97% tf2onnx/custom_opsets/string_ops.py 166 99 40% tf2onnx/flexbuffers.py 117 33 72% tf2onnx/graph.py 1173 126 89% tf2onnx/graph_builder.py 141 41 71% tf2onnx/graph_matcher.py 105 5 95% tf2onnx/handler.py 77 3 96% tf2onnx/keras2onnx_api.py 34 34 0% tf2onnx/late_rewriters/__init__.py 3 0 100% tf2onnx/late_rewriters/channel_order_rewriters.py 46 36 22% tf2onnx/onnx_opset/__init__.py 2 0 100% tf2onnx/onnx_opset/common.py 43 24 44% tf2onnx/onnx_opset/controlflow.py 548 80 85% tf2onnx/onnx_opset/generator.py 218 70 68% tf2onnx/onnx_opset/logical.py 95 32 66% tf2onnx/onnx_opset/math.py 534 145 73% tf2onnx/onnx_opset/misc.py 26 9 65% tf2onnx/onnx_opset/nn.py 1379 332 76% tf2onnx/onnx_opset/quantize.py 39 0 100% tf2onnx/onnx_opset/reduction.py 240 28 88% tf2onnx/onnx_opset/rnn.py 145 126 13% tf2onnx/onnx_opset/signal.py 515 67 87% tf2onnx/onnx_opset/tensor.py 2705 346 87% tf2onnx/onnx_opset/traditionalml.py 3 0 100% tf2onnx/optimizer/__init__.py 52 2 96% tf2onnx/optimizer/back_to_back_optimizer.py 179 33 82% tf2onnx/optimizer/const_dequantize_optimizer.py 90 8 91% tf2onnx/optimizer/const_fold_optimizer.py 152 2 99% tf2onnx/optimizer/einsum_optimizer.py 1331 192 86% tf2onnx/optimizer/global_pool_optimizer.py 43 1 98% tf2onnx/optimizer/identity_optimizer.py 54 2 96% tf2onnx/optimizer/loop_optimizer.py 58 4 93% tf2onnx/optimizer/merge_duplicated_nodes_optimizer.py 77 1 99% tf2onnx/optimizer/optimizer_base.py 46 2 96% tf2onnx/optimizer/q_dq_optimizer.py 114 12 89% tf2onnx/optimizer/reshape_optimizer.py 82 1 99% tf2onnx/optimizer/transpose_optimizer.py 717 95 87% tf2onnx/optimizer/upsample_optimizer.py 28 14 50% tf2onnx/rewriter/__init__.py 22 0 100% tf2onnx/rewriter/bigru_rewriter.py 63 2 97% tf2onnx/rewriter/bilstm_rewriter.py 61 2 97% tf2onnx/rewriter/cond_rewriter.py 188 29 85% tf2onnx/rewriter/conv2d_with_add_rewriter.py 29 2 93% tf2onnx/rewriter/conv2d_with_pad_rewriter.py 41 7 83% tf2onnx/rewriter/conv_dilations_rewriter.py 87 19 78% tf2onnx/rewriter/custom_rnn_rewriter.py 138 115 17% tf2onnx/rewriter/dropout_rewriter.py 41 28 32% tf2onnx/rewriter/eye_rewriter.py 40 3 92% tf2onnx/rewriter/flatten_rewriter.py 48 33 31% tf2onnx/rewriter/fused_op_rewriter.py 23 18 22% tf2onnx/rewriter/gemm_rewriter.py 70 8 89% tf2onnx/rewriter/gru_rewriter.py 177 82 54% tf2onnx/rewriter/gru_tf2_rewriter.py 123 18 85% tf2onnx/rewriter/layer_normalization_rewriter.py 50 6 88% tf2onnx/rewriter/leakyrelu_rewriter.py 23 2 91% tf2onnx/rewriter/loop_rewriter.py 108 88 19% tf2onnx/rewriter/loop_rewriter_base.py 303 221 27% tf2onnx/rewriter/lstm_rewriter.py 301 178 41% tf2onnx/rewriter/lstm_rewriter_base.py 112 87 22% tf2onnx/rewriter/lstm_tf2_rewriter.py 198 26 87% tf2onnx/rewriter/quantization_ops_rewriter.py 90 0 100% tf2onnx/rewriter/ragged_variant_shape_rewriter.py 22 2 91% tf2onnx/rewriter/random_normal_rewriter.py 42 4 90% tf2onnx/rewriter/random_uniform.py 59 41 31% tf2onnx/rewriter/rnn.py 23 0 100% tf2onnx/rewriter/rnn_utils.py 264 69 74% tf2onnx/rewriter/thresholded_relu_rewriter.py 20 1 95% tf2onnx/rewriter/transpose_rewriter.py 15 7 53% tf2onnx/rewriter/unit_rnn_rewriter_base.py 187 142 24% tf2onnx/schemas.py 121 4 97% tf2onnx/shape_inference.py 387 271 30% tf2onnx/symbolic_executor.py 149 22 85% tf2onnx/tf_loader.py 564 253 55% tf2onnx/tf_utils.py 309 25 92% tf2onnx/tfjs_utils.py 366 332 9% tf2onnx/tflite/AbsOptions.py 25 25 0% tf2onnx/tflite/ActivationFunctionType.py 7 0 100% tf2onnx/tflite/AddNOptions.py 25 25 0% tf2onnx/tflite/AddOptions.py 41 12 71% tf2onnx/tflite/ArgMaxOptions.py 33 10 70% tf2onnx/tflite/ArgMinOptions.py 33 10 70% tf2onnx/tflite/AssignVariableOptions.py 25 25 0% tf2onnx/tflite/BatchMatMulOptions.py 49 49 0% tf2onnx/tflite/BatchToSpaceNDOptions.py 25 25 0% tf2onnx/tflite/BidirectionalSequenceLSTMOptions.py 73 73 0% tf2onnx/tflite/BidirectionalSequenceRNNOptions.py 57 57 0% tf2onnx/tflite/BroadcastToOptions.py 25 25 0% tf2onnx/tflite/BucketizeOptions.py 50 50 0% tf2onnx/tflite/Buffer.py 50 16 68% tf2onnx/tflite/BuiltinOperator.py 153 0 100% tf2onnx/tflite/BuiltinOptions.py 119 0 100% tf2onnx/tflite/CallOnceOptions.py 33 33 0% tf2onnx/tflite/CallOptions.py 33 33 0% tf2onnx/tflite/CastOptions.py 41 41 0% tf2onnx/tflite/CombinerType.py 4 4 0% tf2onnx/tflite/ConcatEmbeddingsOptions.py 83 83 0% tf2onnx/tflite/ConcatenationOptions.py 41 11 73% tf2onnx/tflite/Conv2DOptions.py 73 17 77% tf2onnx/tflite/Conv3DOptions.py 89 89 0% tf2onnx/tflite/CosOptions.py 25 25 0% tf2onnx/tflite/CumsumOptions.py 41 11 73% tf2onnx/tflite/CustomOptionsFormat.py 2 0 100% tf2onnx/tflite/CustomQuantization.py 50 50 0% tf2onnx/tflite/DensifyOptions.py 25 25 0% tf2onnx/tflite/DepthToSpaceOptions.py 33 10 70% tf2onnx/tflite/DepthwiseConv2DOptions.py 81 19 77% tf2onnx/tflite/DequantizeOptions.py 25 25 0% tf2onnx/tflite/DimensionMetadata.py 79 79 0% tf2onnx/tflite/DimensionType.py 3 3 0% tf2onnx/tflite/DivOptions.py 33 10 70% tf2onnx/tflite/DynamicUpdateSliceOptions.py 25 25 0% tf2onnx/tflite/EmbeddingLookupSparseOptions.py 33 33 0% tf2onnx/tflite/EqualOptions.py 25 25 0% tf2onnx/tflite/ExpOptions.py 25 8 68% tf2onnx/tflite/ExpandDimsOptions.py 25 8 68% tf2onnx/tflite/FakeQuantOptions.py 57 57 0% tf2onnx/tflite/FillOptions.py 25 25 0% tf2onnx/tflite/FloorDivOptions.py 25 25 0% tf2onnx/tflite/FloorModOptions.py 25 25 0% tf2onnx/tflite/FullyConnectedOptions.py 57 16 72% tf2onnx/tflite/FullyConnectedOptionsWeightsFormat.py 3 0 100% tf2onnx/tflite/GatherNdOptions.py 25 25 0% tf2onnx/tflite/GatherOptions.py 41 12 71% tf2onnx/tflite/GeluOptions.py 33 33 0% tf2onnx/tflite/GreaterEqualOptions.py 25 25 0% tf2onnx/tflite/GreaterOptions.py 25 25 0% tf2onnx/tflite/HardSwishOptions.py 25 25 0% tf2onnx/tflite/HashtableFindOptions.py 25 25 0% tf2onnx/tflite/HashtableImportOptions.py 25 25 0% tf2onnx/tflite/HashtableOptions.py 49 49 0% tf2onnx/tflite/HashtableSizeOptions.py 25 25 0% tf2onnx/tflite/IfOptions.py 41 12 71% tf2onnx/tflite/Int32Vector.py 50 50 0% tf2onnx/tflite/L2NormOptions.py 33 10 70% tf2onnx/tflite/LSHProjectionOptions.py 33 33 0% tf2onnx/tflite/LSHProjectionType.py 4 4 0% tf2onnx/tflite/LSTMKernelType.py 3 3 0% tf2onnx/tflite/LSTMOptions.py 65 65 0% tf2onnx/tflite/LeakyReluOptions.py 33 10 70% tf2onnx/tflite/LessEqualOptions.py 25 25 0% tf2onnx/tflite/LessOptions.py 25 25 0% tf2onnx/tflite/LocalResponseNormalizationOptions.py 57 16 72% tf2onnx/tflite/LogSoftmaxOptions.py 25 8 68% tf2onnx/tflite/LogicalAndOptions.py 25 25 0% tf2onnx/tflite/LogicalNotOptions.py 25 25 0% tf2onnx/tflite/LogicalOrOptions.py 25 25 0% tf2onnx/tflite/MatrixDiagOptions.py 25 25 0% tf2onnx/tflite/MatrixSetDiagOptions.py 25 25 0% tf2onnx/tflite/MaximumMinimumOptions.py 25 25 0% tf2onnx/tflite/Metadata.py 41 41 0% tf2onnx/tflite/MirrorPadMode.py 3 0 100% tf2onnx/tflite/MirrorPadOptions.py 33 9 73% tf2onnx/tflite/Model.py 191 77 60% tf2onnx/tflite/MulOptions.py 33 10 70% tf2onnx/tflite/NegOptions.py 25 8 68% tf2onnx/tflite/NonMaxSuppressionV4Options.py 25 25 0% tf2onnx/tflite/NonMaxSuppressionV5Options.py 25 25 0% tf2onnx/tflite/NotEqualOptions.py 25 25 0% tf2onnx/tflite/OneHotOptions.py 33 9 73% tf2onnx/tflite/Operator.py 185 73 61% tf2onnx/tflite/OperatorCode.py 57 13 77% tf2onnx/tflite/PackOptions.py 41 11 73% tf2onnx/tflite/PadOptions.py 25 8 68% tf2onnx/tflite/PadV2Options.py 25 8 68% tf2onnx/tflite/Padding.py 3 0 100% tf2onnx/tflite/Pool2DOptions.py 73 19 74% tf2onnx/tflite/PowOptions.py 25 25 0% tf2onnx/tflite/QuantizationDetails.py 3 3 0% tf2onnx/tflite/QuantizationParameters.py 152 77 49% tf2onnx/tflite/QuantizeOptions.py 25 25 0% tf2onnx/tflite/RNNOptions.py 41 41 0% tf2onnx/tflite/RandomOptions.py 41 41 0% tf2onnx/tflite/RangeOptions.py 25 25 0% tf2onnx/tflite/RankOptions.py 25 25 0% tf2onnx/tflite/ReadVariableOptions.py 25 25 0% tf2onnx/tflite/ReducerOptions.py 33 9 73% tf2onnx/tflite/ReshapeOptions.py 50 50 0% tf2onnx/tflite/ResizeBilinearOptions.py 41 11 73% tf2onnx/tflite/ResizeNearestNeighborOptions.py 41 11 73% tf2onnx/tflite/ReverseSequenceOptions.py 41 10 76% tf2onnx/tflite/ReverseV2Options.py 25 25 0% tf2onnx/tflite/Rfft2dOptions.py 25 25 0% tf2onnx/tflite/SVDFOptions.py 49 49 0% tf2onnx/tflite/ScatterNdOptions.py 25 8 68% tf2onnx/tflite/SegmentSumOptions.py 25 25 0% tf2onnx/tflite/SelectOptions.py 25 8 68% tf2onnx/tflite/SelectV2Options.py 25 8 68% tf2onnx/tflite/SequenceRNNOptions.py 49 49 0% tf2onnx/tflite/ShapeOptions.py 33 10 70% tf2onnx/tflite/SignatureDef.py 91 91 0% tf2onnx/tflite/SkipGramOptions.py 49 49 0% tf2onnx/tflite/SliceOptions.py 25 25 0% tf2onnx/tflite/SoftmaxOptions.py 33 10 70% tf2onnx/tflite/SpaceToBatchNDOptions.py 25 25 0% tf2onnx/tflite/SpaceToDepthOptions.py 33 10 70% tf2onnx/tflite/SparseIndexVector.py 5 5 0% tf2onnx/tflite/SparseToDenseOptions.py 33 33 0% tf2onnx/tflite/SparsityParameters.py 100 100 0% tf2onnx/tflite/SplitOptions.py 33 10 70% tf2onnx/tflite/SplitVOptions.py 33 10 70% tf2onnx/tflite/SquareOptions.py 25 8 68% tf2onnx/tflite/SquaredDifferenceOptions.py 25 25 0% tf2onnx/tflite/SqueezeOptions.py 50 22 56% tf2onnx/tflite/StridedSliceOptions.py 65 15 77% tf2onnx/tflite/SubGraph.py 133 31 77% tf2onnx/tflite/SubOptions.py 41 11 73% tf2onnx/tflite/Tensor.py 131 45 66% tf2onnx/tflite/TensorMap.py 41 41 0% tf2onnx/tflite/TensorType.py 18 0 100% tf2onnx/tflite/TileOptions.py 25 25 0% tf2onnx/tflite/TopKV2Options.py 25 8 68% tf2onnx/tflite/TransposeConvOptions.py 49 13 73% tf2onnx/tflite/TransposeOptions.py 25 25 0% tf2onnx/tflite/Uint8Vector.py 50 50 0% tf2onnx/tflite/Uint16Vector.py 50 50 0% tf2onnx/tflite/UnidirectionalSequenceLSTMOptions.py 65 65 0% tf2onnx/tflite/UniqueOptions.py 33 9 73% tf2onnx/tflite/UnpackOptions.py 41 11 73% tf2onnx/tflite/VarHandleOptions.py 41 41 0% tf2onnx/tflite/WhereOptions.py 25 25 0% tf2onnx/tflite/WhileOptions.py 41 12 71% tf2onnx/tflite/ZerosLikeOptions.py 25 8 68% tf2onnx/tflite/__init__.py 0 0 100% tf2onnx/tflite_handlers/__init__.py 2 0 100% tf2onnx/tflite_handlers/tfl_controlflow.py 82 0 100% tf2onnx/tflite_handlers/tfl_direct.py 84 0 100% tf2onnx/tflite_handlers/tfl_math.py 203 71 65% tf2onnx/tflite_handlers/tfl_nn.py 128 32 75% tf2onnx/tflite_handlers/tfl_postprocess.py 85 4 95% tf2onnx/tflite_handlers/tfl_tensor.py 75 8 89% tf2onnx/tflite_rewriters/__init__.py 6 0 100% tf2onnx/tflite_rewriters/tfl_qdq_rewriter.py 35 32 9% tf2onnx/tflite_rewriters/tfl_rfft_rewriter.py 28 18 36% tf2onnx/tflite_rewriters/tfl_scan_output_rewriter.py 111 30 73% tf2onnx/tflite_rewriters/tfl_select_zero_rewriter.py 24 16 33% tf2onnx/tflite_utils.py 332 29 91% tf2onnx/tfonnx.py 384 140 64% tf2onnx/utils.py 361 93 74% tf2onnx/verbose_logging.py 58 15 74% tf2onnx/version.py 2 0 100% --------------------------------------------------------------------------- TOTAL 24685 8521 65% ============================================================================================================================================== short test summary info ============================================================================================================================================== FAILED tests/test_backend.py::BackendTests::test_rfft_ops - ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} FAILED tests/test_backend.py::BackendTests::test_rfft_ops_fft_length - ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} FAILED tests/test_backend.py::BackendTests::test_rfft_ops_fft_length_many - ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} FAILED tests/test_backend.py::BackendTests::test_rfft_ops_fft_length_many_bigger - ValueError: make_sure failure: Current implementation of RFFT2D only allows ComplexAbs as consumer not {'Reshape'} ======================================================================================================================= 4 failed, 773 passed, 155 skipped, 157 warnings in 467.16s (0:07:47) ========================================================================================================================