[03/06/2022-16:51:43] [E] [TRT] ModelImporter.cpp:751: — End node —
[03/06/2022-16:51:43] [E] [TRT] ModelImporter.cpp:754: ERROR: builtin_op_importers.cpp:2122 In function importIf:
[6] Assertion failed: condTensor && “Failed to convert the input cond to a scalar.”
[03/06/2022-16:51:43] [E] Failed to parse onnx file
[03/06/2022-16:51:43] [I] Finish parsing network model
[03/06/2022-16:51:43] [E] Parsing model failed
[03/06/2022-16:51:43] [E] Failed to create engine from model.
[03/06/2022-16:51:43] [E] Engine set up failed
&&&& FAILED TensorRT.trtexec [TensorRT v8400] # trtexec --onnx=unet.onnx --fp16 --workspace=64 --optShapes=input:1x3x512x512 --buildOnly --saveEngine=unet.engine
Why?