提交 abdeb0e0 编写于 作者: M MyPandaShaoxiang

transformer_patch

上级 d035f1ba
......@@ -142,7 +142,7 @@ class VariablePlaceInferencePass : public DebugPass {
} else {
PrecisionType tmp_ptype = x_in->AsArg().type->precision();
x_in->AsArg().type = LiteType::GetTensorTy(
type->target(), tmp_ptype, type->layout());
type->target(), type->precision(), type->layout());
}
}
}
......@@ -173,7 +173,7 @@ class VariablePlaceInferencePass : public DebugPass {
} else {
PrecisionType tmp_ptype = x_out->AsArg().type->precision();
x_out->AsArg().type = LiteType::GetTensorTy(
type->target(), tmp_ptype, type->layout());
type->target(), type->precision(), type->layout());
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册