diff --git a/src/core/impl/dtype.cpp b/src/core/impl/dtype.cpp index 5f2d44f2..494dbcd0 100644 --- a/src/core/impl/dtype.cpp +++ b/src/core/impl/dtype.cpp @@ -209,6 +209,7 @@ typename ctype_enable_if::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());