Skip to content

ONNX to TensorRT conversion fails due to GridSample #4666

@accessdenied35-rgb

Description

@accessdenied35-rgb

Description

I am trying to convert a model from PyTorch to ONNX, which was successful. However, when I convert the ONNX to TensorRT, an error occurs because the older version of TensorRT doesn't support GridSample. Newer versions of TensorRT solve the above issue, but I am limited to using the current version, 8.2.1.8.

I tried installing mmdeploy and adding the libmmdeploy_tensorrt_ops.so operator library file to the trtexec --plugin command (#2756), but I'm still getting the same error.
Is there a solution to this problem? Or a guide on how to add the GridSample operator to the aforementioned version of TensorRT?

Environment

TensorRT Version: 8.2.1.8

CUDA Version: 10.2

Operating System: Jetpack 4.6.1 [L4T 32.7.1]

Python Version: 3.6.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module:ONNXIssues relating to ONNX usage and import

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions