TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

Assertion engine failed

Open PWZER opened this issue 1 year ago • 4 comments

Description

Use trtexec convert an onnx model to trt failed, but no more error information, how to solve it?

[02/20/2024-10:56:21] [E] Error[2]: Assertion engine failed.
[02/20/2024-10:56:21] [E] Error[2]: [refitUtils.cpp::buildRefitEngine::71] Error Code 2: Internal Error (Assertion engine failed. )
[02/20/2024-10:56:21] [E] Engine could not be created from network
[02/20/2024-10:56:21] [E] Building engine failed
[02/20/2024-10:56:21] [E] Failed to create engine from model or file.
[02/20/2024-10:56:21] [E] Engine set up failed

Environment

TensorRT Version: 8.6.1

NVIDIA GPU: A30

NVIDIA Driver Version: 525.85.12

CUDA Version: 12.1

CUDNN Version:

PWZER avatar Feb 20 '24 03:02 PWZER

Description

Use trtexec convert an onnx model to trt failed, but no more error information, how to solve it?

[02/20/2024-10:56:21] [E] Error[2]: Assertion engine failed.
[02/20/2024-10:56:21] [E] Error[2]: [refitUtils.cpp::buildRefitEngine::71] Error Code 2: Internal Error (Assertion engine failed. )
[02/20/2024-10:56:21] [E] Engine could not be created from network
[02/20/2024-10:56:21] [E] Building engine failed
[02/20/2024-10:56:21] [E] Failed to create engine from model or file.
[02/20/2024-10:56:21] [E] Engine set up failed

Environment

TensorRT Version: 8.6.1

NVIDIA GPU: A30

NVIDIA Driver Version: 525.85.12

CUDA Version: 12.1

CUDNN Version:

Could you provide a minimal onnx model to repro the issue?

BowenFu avatar Feb 20 '24 08:02 BowenFu

Hi @BowenFu Is there an update on this issue? We are facing a similar issue

ndeep27 avatar Jun 19 '24 00:06 ndeep27

Hi @BowenFu Is there an update on this issue? We are facing a similar issue

Could you provide a minimal onnx model for us to reproduce the issue?

BowenFu avatar Jun 19 '24 02:06 BowenFu

My problem has been solved. It was due to insufficient GPU memory. When I changed from FP32 to FP16, the problem no longer occurred. I am curious why it is not reporting OOM.

PWZER avatar Jun 19 '24 14:06 PWZER