Closed ganyk closed 2 years ago
Hi @ganyk, Thanks for providing detailed repro!
The issue here is not enough memory on your device to run this network with input (256, 512, 32, 32). Even without dynamic shapes. I'm getting OOM error in torch.onnx.export when I'm running without dynamic shapes and this input:
dummy_input = torch.randn((256, 512, 32, 32), requires_grad=False)
I suggest you adjust kMAX in your shape to a smaller value. For example, on my local setup 128 works ok:
profile.set_shape("input_1", (1, 512, 32, 32), (16, 512, 32, 32), (128, 512, 32, 32))
closing for now due to >14 days with no response. Please feel free to reopen if the issue still exists. Thanks
Hi, I am trying to build TensorRT engine from onnx model which contains dynamic shape. I encounter a build error: "Error Code 10: Internal Error (Could not find any implementation for node Transpose_50.)". The build process can complete if I build the engine without dynamic shape.
here is code that can reproduce the error
@ttyio