Skip to content

❓ [Question] dynamc engines & interpolation align_corners=True #2327

Open
@ArtemisZGL

Description

@ArtemisZGL

❓ Question

What you have already tried

I used the latest docker with tag 23.08-py3. When converting model doing interpolation with align_corners=True and dynamic input, I got error as below.

RuntimeError: [Error thrown at core/conversion/converters/impl/interpolate.cpp:412] Expected !(align_corners && ctx->input_is_dynamic) to be true but got false                                                                                               
Torch-TensorRT currently does not support the compilation of dynamc engines from code using PyTorch [bi/tri]linear interpolation via scale factor and align_corners=True 

And I found this check did exist in code with tag v1.4.0, but not in main branch. Will I need to clone the latest code and recompile torch-tensorrt to escape frome this error and will it work? Or any other simple way ?

Environment

nvcr.io/nvidia/pytorch:23.08-py3

Additional context

Metadata

Metadata

Assignees

Labels

component: convertersIssues re: Specific op convertersquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions