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

[TensorRT] ERROR: UFFParser: Parser error: input_2: Invalid number of Dimensions 0 #9

Open
lucasjinreal opened this issue Dec 13, 2017 · 4 comments
Assignees

Comments

@lucasjinreal
Copy link

I run the code-samples/TensorRT3.1/convert.ipynb, but got this error:

[TensorRT] INFO: UFFParser: parsing input_2
[TensorRT] ERROR: UFFParser: Parser error: input_2: Invalid number of Dimensions 0
[TensorRT] ERROR: Failed to parse UFF model stream
  File "/usr/local/lib/python3.5/dist-packages/tensorrt/utils/_utils.py", line 186, in uff_to_trt_engine
    assert(parser_result)
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/tensorrt/utils/_utils.py", line 186, in uff_to_trt_engine
    assert(parser_result)
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "convert.py", line 124, in <module>
    create_and_save_inference_engine()
  File "convert.py", line 99, in create_and_save_inference_engine
    trt.infer.DataType.FLOAT
  File "/usr/local/lib/python3.5/dist-packages/tensorrt/utils/_utils.py", line 194, in uff_to_trt_engine
    raise AssertionError('UFF parsing failed on line {} in statement {}'.format(line, text))
AssertionError: UFF parsing failed on line 186 in statement assert(parser_result)

We registered the input_1 as input why it still try to parse input_2?
Many appreciate if got any reply!

@faustomilletari
Copy link
Contributor

Could you please post here a snippet of your code in order to see where the problem is? This is only necessary if you are not running the example as we provide it in the repo.

@lucasjinreal
Copy link
Author

I am using convert-tf-to-uff tool found that it is input_2 not input_1

@gsandeep1231
Copy link

Inside this file there are 2 APIs /usr/local/lib/python3.5/dist-packages/tensorrt/utils/_utils.py
I have always found issue with uff_to_trt_engine, however uff_file_to_trt_engine works just fine. The only different is in the later you pass the actual uff file and not the uff model.

@harrism harrism assigned harrism and faustomilletari and unassigned harrism Aug 23, 2018
@Akhtar303nu
Copy link

Hi @jinfagang have you solved this issue?
if you solved ,please share the code
Error
File "/usr/local/lib/python3.5/dist-packages/tensorrt/utils/_utils.py", line 194, in uff_to_trt_engine
raise AssertionError('UFF parsing failed on line {} in statement {}'.format(line, text))
AssertionError: UFF parsing failed on line 186 in statement assert(parser_result)
Thanks

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

5 participants