未验证 提交 ffbc2122 编写于 作者: F fengkuangxiaxia 提交者: GitHub

roi_align fix (#38788)

上级 0a7cb901
......@@ -13,7 +13,9 @@
// limitations under the License.
#include "paddle/fluid/inference/tensorrt/op_teller.h"
#include <bitset>
#include "paddle/fluid/framework/block_desc.h"
#include "paddle/fluid/framework/data_layout.h"
......@@ -1283,7 +1285,8 @@ bool OpTeller::Tell(const framework::ir::Node* node, bool use_no_calib_int8,
return false;
}
std::vector<std::string> attrs{"pooled_height", "pooled_width",
"spatial_scale", "sampling_ratio"};
"spatial_scale", "sampling_ratio",
"aligned"};
for (auto const attr : attrs) {
if (!desc.HasAttr(attr)) return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册