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

Fixed a bug that caused an error by referencing Numpy data that should not exist as output OP in TensorFlow. #185 #188

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

PINTO0309
Copy link
Owner

@PINTO0309 PINTO0309 commented Feb 13, 2023

1. Content and background

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/xxxx/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 39, in <module>
    cli.main()
  File "/home/xxxx/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "/home/xxxx/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
    runpy.run_path(target, run_name="__main__")
  File "/home/xxxx/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/home/xxxx/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/home/xxxx/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
    exec(code, run_globals)
  File "/home/xxxx/git/onnx2tf/onnx2tf/onnx2tf.py", line 1873, in <module>
    main()
  File "/home/xxxx/git/onnx2tf/onnx2tf/onnx2tf.py", line 1828, in main
    model = convert(
  File "/home/xxxx/git/onnx2tf/onnx2tf/onnx2tf.py", line 771, in convert
    outputs = get_tf_model_outputs(
  File "/home/xxxx/git/onnx2tf/onnx2tf/utils/common_functions.py", line 3374, in get_tf_model_outputs
    op = tf_layers_dict[name]
KeyError: '976'

2. Summary of corrections

3. Before/After (If there is an operating log that can be used as a reference)

4. Issue number (only if there is a related issue)

Fix order and name of TF model outputs #185

@PINTO0309 PINTO0309 changed the title Fixed a bug that caused an error by referencing Numpy data that should not exist as output OP in TensorFlow. #18 Fixed a bug that caused an error by referencing Numpy data that should not exist as output OP in TensorFlow. #185 Feb 13, 2023
@PINTO0309 PINTO0309 merged commit 5bb324e into main Feb 13, 2023
@PINTO0309 PINTO0309 deleted the bug_fix branch February 13, 2023 12:55
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

Successfully merging this pull request may close these issues.

None yet

1 participant