Skip to content

Conversation

weishengying
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

修复通用 plugin 机制中的bug

@paddle-bot
Copy link

paddle-bot bot commented Oct 17, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

qingqing01
qingqing01 previously approved these changes Oct 17, 2022
@@ -287,15 +287,21 @@ bool GenericPlugin::supportsFormatCombination(
const nvinfer1::PluginTensorDesc* in_out,
int nb_inputs,
int nb_outputs) TRT_NOEXCEPT {
bool is_linear_input = in_out[pos].format == nvinfer1::TensorFormat::kLINEAR;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是不是可以这里增加

if(!is_linear_input)  return false;

@qingqing01 qingqing01 merged commit 75b1678 into PaddlePaddle:develop Oct 18, 2022
@weishengying weishengying deleted the bug_fix branch October 28, 2022 03:10
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

Successfully merging this pull request may close these issues.

3 participants