diff --git a/src/core/impl/dtype.cpp b/src/core/impl/dtype.cpp index 5f2d44f26af9c9277b4365b71008c9dc1141fe39..494dbcd0bfda1f99c771e2cdea971c71e30e183c 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());