未验证 提交 48edbb28 编写于 作者: Y Yuanle Liu 提交者: GitHub

fix auto mixed precision related to tensorrt_engine op (#54112)

上级 6d1292ef
......@@ -479,7 +479,9 @@ void AutoMixedPrecisionPass::UpdateOpPrecision() const {
auto op_type = op_node->Op()->Type();
if (GetOpOriginalType(op_type) == "fetch") continue;
if (op_node->Op()->HasAttr("sub_block")) continue;
if (op_node->Op()->HasAttr("sub_block") &&
GetOpOriginalType(op_type) != "tensorrt_engine")
continue;
for (auto* var_node : op_node->outputs) {
CHECK_EQ(var_node->IsVar(), true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册