Open lix19937 opened 6 months ago
https://docs.nvidia.com/deeplearning/tensorrt/operators/docs/GridSample.html
TensorRT 8.5 supports operators up to Opset 17 from
https://github.com/onnx/onnx-tensorrt/blob/8.5-GA/docs/operators.md
op | trt support | type |
---|---|---|
GridSample | Y | FP32, FP16 |
LayerNormalization | N |
torch.nn.functional.grid_sample 的物理含义
https://stackoverflow.com/questions/61570727/how-to-use-pytorchs-grid-sample
https://stackoverflow.com/questions/73300183/understanding-the-torch-nn-functional-grid-sample-op-by-concrete-example
https://blog.csdn.net/weixin_40957452/article/details/121837939
@torch.onnx.export
RuntimeError: Exporting the operator grid_sampler to ONNX opset version 11 is not supported
RuntimeError: Exporting the operator grid_sampler to ONNX opset version 13 is not supported.
ops = 11 13 不支持 gird_sample 从16开始支持导出单一节点
torch.nn.functional.grid_sample
https://onnx.ai/onnx/operators/onnx__GridSample.html
GridSample 22, 20, 16