Giter VIP home page Giter VIP logo

Comments (3)

WangXuanBT avatar WangXuanBT commented on September 26, 2024

i'm sorry, but,did you find the reason? i faced a similar issue:
[E] [TRT] ../rtSafe/cuda/cudaPoolingRunner.cpp (200) - Cudnn Error in execute: 3 (CUDNN_STATUS_BAD_PARAM)

from torch2trt.

wxinbeings avatar wxinbeings commented on September 26, 2024

i'm sorry, but,did you find the reason? i faced a similar issue: [E] [TRT] ../rtSafe/cuda/cudaPoolingRunner.cpp (200) - Cudnn Error in execute: 3 (CUDNN_STATUS_BAD_PARAM)

I got the same error, have you solved it? Could you give me some advice?Thanks.

from torch2trt.

WangXuanBT avatar WangXuanBT commented on September 26, 2024

i'm sorry, but,did you find the reason? i faced a similar issue: [E] [TRT] ../rtSafe/cuda/cudaPoolingRunner.cpp (200) - Cudnn Error in execute: 3 (CUDNN_STATUS_BAD_PARAM)

I got the same error, have you solved it? Could you give me some advice?Thanks.

Yeah, I'll show u my step(I test a craft.onnx in my case):
Trying process:
./trtexec --verbose --onnx=/tmp/trt/craft_modify_fix.onnx
Success

./trtexec --verbose --onnx=/tmp/trt/craft_modify_dynamic.onnx
[E] [TRT] Network has dynamic or shape inputs, but no optimization profile has been defined.

./trtexec --verbose --onnx=/tmp/trt/craft_modify_dynamic.onnx --explicitBatch
[E] [TRT] ../rtSafe/cuda/cudaPoolingRunner.cpp (200) - Cudnn Error in execute: 3 (CUDNN_STATUS_BAD_PARAM)
then u should refer:
https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#work_dynamic_shapes
https://github.com/NVIDIA/TensorRT/tree/f5e8b8c55060447c4d3a45e7379bc25374edc93f/samples/opensource/trtexec
to learn something

./trtexec --verbose --onnx=/tmp/trt/craft_modify_dynamic.onnx --explicitBatch --device=1 --dumpOutput --dumpProfile --useCudaGraph --workspace=2048 --minShapes=input:1x3x200x200 --optShapes=input:1x3x500x500 --maxShapes=input:1x3x800x800 --shapes=input:1x3x500x500
[E] [TRT] ../rtSafe/cuda/cudaConvolutionRunner.cpp (362) - Cudnn Error in execute: 9 (CUDNN_STATUS_NOT_SUPPORTED)

./trtexec --verbose --onnx=/tmp/trt/craft_modify_dynamic.onnx --explicitBatch --device=1 --dumpOutput --dumpProfile --useCudaGraph --workspace=2048 --minShapes=input:1x3x200x200 --optShapes=input:1x3x608x608 --maxShapes=input:1x3x800x800 --shapes=input:1x3x500x500
[E] [TRT] Concat_150: dimensions not compatible for concatenation

./trtexec --verbose --onnx=/tmp/trt/craft_modify_dynamic.onnx --explicitBatch --device=1 --dumpOutput --dumpProfile --useCudaGraph --workspace=2048 --minShapes=input:1x3x200x200 --optShapes=input:1x3x608x608 --maxShapes=input:1x3x800x800 --shapes=input:1x3x608x608
[E] [TRT] ../rtSafe/safeContext.cpp (133) - Cudnn Error in configure: 7 (CUDNN_STATUS_MAPPING_ERROR)

./trtexec --verbose --onnx=/tmp/trt/craft_modify_dynamic.onnx --explicitBatch --dumpOutput --dumpProfile --useCudaGraph --workspace=2048 --minShapes=input:1x3x200x200 --optShapes=input:1x3x608x608 --maxShapes=input:1x3x800x800 --shapes=input:1x3x608x608
Success

In conclusion, u have to learn the useage from https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#work_dynamic_shapes and https://github.com/NVIDIA/TensorRT/tree/f5e8b8c55060447c4d3a45e7379bc25374edc93f/samples/opensource/trtexec and so on...

from torch2trt.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.