提交 99df4a79 编写于 作者: M Megvii Engine Team

fix(dtype): dtype scalar set_retain_dtype supports bool

GitOrigin-RevId: aafd378e1b958c37d21c64c01bf9476f8d590c8a
上级 53d48ca3
......@@ -209,6 +209,7 @@ typename ctype_enable_if<ctype>::type DTypeScalar::set_retain_dtype(ctype val) {
}
MEGDNN_FOREACH_COMPUTING_DTYPE(cb)
MEGDNN_FOREACH_QUANTIZED_DTYPE(cb)
cb(dt_bool);
#undef cb
default:
mgb_throw(ConversionError, "can not assign to dtype %s", m_dtype.name());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册