提交 97207d00 编写于 作者: M Megvii Engine Team

fix(mgb/opr): fix bazel compile error by comma in mgb_throw_if's format string

GitOrigin-RevId: 72d19aecd1f470ecc51acbb9df09b24535cc4ce8
上级 5a442553
......@@ -50,8 +50,8 @@ BatchNormForward::BatchNormForward(VarNode *x,
mgb_throw_if(!(dest_opr->same_type<SharedDeviceTensor>() ||
dest_opr->same_type<VolatileSharedDeviceTensor>()),
GraphError,
"mean and variance in training mode BatchNorm must be",
"SharedDeviceTensor or VolatileSharedDeviceTensor;",
"mean and variance in training mode BatchNorm must be"
"SharedDeviceTensor or VolatileSharedDeviceTensor;"
"got %s{%s} actually",
dest_opr->cname(), dest_opr->dyn_typeinfo()->name);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册