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

关于plugin问题enqueue问题? #41

Open
linhezheng19 opened this issue Sep 27, 2020 · 2 comments
Open

关于plugin问题enqueue问题? #41

linhezheng19 opened this issue Sep 27, 2020 · 2 comments

Comments

@linhezheng19
Copy link

在PluginV2Ext中有enqueue方法需要重写,您在自定义的TRTPlugin中又重定义了一个enqueue,输入参数和原来的大不一样,在这个DEFINE_BUILTIN_OP_IMPORTER宏中虽然有转类型的操作,但是是怎么调用到自定义的那个enqueue方法的呢?看了很久没有明白,求大佬指点~

@hopef
Copy link
Contributor

hopef commented Oct 28, 2020

在TRTPlugin里面,也就是onnxplugin.cpp:254行开始,调用了mappingToGTensor、对数据类型做了封装,然后再调用enqueue(也就是自定义的 enqueue)是这么做到的

@linhezheng19
Copy link
Author

明白了,多谢大佬~

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