Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static Symbolic Method Operator #201

Open
fy-shen opened this issue Mar 18, 2024 · 1 comment
Open

Static Symbolic Method Operator #201

fy-shen opened this issue Mar 18, 2024 · 1 comment

Comments

@fy-shen
Copy link

fy-shen commented Mar 18, 2024

你好,在 TRT_NMS 的 symbolic 函数中使用了 TRT::EfficientNMS_TRT,这看起来是使用了 efficientNMSPlugin,但这里使用的参数与官方文档中有所不同,添加了代表数据类型的后缀,这是为什么?另外我想知道 TensorRT 中的 Plugin 是如何支持直接在 g.op() 中使用的,我查看了 PyTorch 的官方文档,里面仅给出了 TorchScript operatorsONNX standard operator

out = g.op('TRT::EfficientNMS_TRT',
           boxes,
           scores,
           iou_threshold_f=iou_threshold,
           score_threshold_f=score_threshold,
           max_output_boxes_i=max_output_boxes,
           background_class_i=background_class,
           box_coding_i=box_coding,
           plugin_version_s=plugin_version,
           score_activation_i=score_activation,
           outputs=4)
@triple-Mu
Copy link
Owner

你好,在 TRT_NMS 的 symbolic 函数中使用了 TRT::EfficientNMS_TRT,这看起来是使用了 efficientNMSPlugin,但这里使用的参数与官方文档中有所不同,添加了代表数据类型的后缀,这是为什么?另外我想知道 TensorRT 中的 Plugin 是如何支持直接在 g.op() 中使用的,我查看了 PyTorch 的官方文档,里面仅给出了 TorchScript operatorsONNX standard operator

out = g.op('TRT::EfficientNMS_TRT',
           boxes,
           scores,
           iou_threshold_f=iou_threshold,
           score_threshold_f=score_threshold,
           max_output_boxes_i=max_output_boxes,
           background_class_i=background_class,
           box_coding_i=box_coding,
           plugin_version_s=plugin_version,
           score_activation_i=score_activation,
           outputs=4)

您好,可以参考 https://github.com/NVIDIA/TensorRT/tree/release/8.6/plugin/efficientNMSPlugin
所有属性输入输出排序按照这个来就可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants