未验证 提交 27774eec 编写于 作者: F feng_shuai 提交者: GitHub

roi_align fix (#38788) (#38869)

Co-authored-by: Nfengkuangxiaxia <fengkuangxiaxia21@gmail.com>
上级 f2a3405f
......@@ -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"
......@@ -1207,7 +1209,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.
先完成此消息的编辑!
想要评论请 注册