Skip to content

Converting DETR models run into Errors when using --layer-precisions #3552

@Faisal-Hajari

Description

@Faisal-Hajari

Description

My work is to turn DETR into tensorRT, when using the flag --fp16 it works. however, my plan is to turn the backbone layers to fp16 and keep the transformer layers in fp32. When I do so I get the following error message.
image
the same code can turn the backbone to fp32 and the transformer into fp16.
it seems the issues that there's foreign kernels most likely coming from Myelin. how to fix this ? and if I can't should I roll back tensorrt before Myelin was supported ?

Environment

TensorRT Version: I'm using Polygraphy Version: 0.49.0

NVIDIA GPU: A6000

NVIDIA Driver Version: 525.116.03

CUDA Version: 12.0

Operating System:

Python Version (if applicable): 3.10

Relevant Files

Model link:

Steps To Reproduce

"polygraphy convert detr.onnx -o detr_mixed.engine --fp16 --precision-constraints obey --layer-precisions /backbone/*:fp16 else:fp32" for the layers in layer-precisions I used a python script to extract all names of onnx layers

Metadata

Metadata

Assignees

Labels

triagedIssue has been triaged by maintainers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions