[BACKEND][IR] Fixed up internal dtype size for booleans (1bit -> 8bit) (#600)
This commit is contained in:
@@ -27,7 +27,7 @@ unsigned type::get_primitive_size_in_bits() const {
|
|||||||
case BF16TyID: return 16;
|
case BF16TyID: return 16;
|
||||||
case FP32TyID: return 32;
|
case FP32TyID: return 32;
|
||||||
case FP64TyID: return 64;
|
case FP64TyID: return 64;
|
||||||
case IntegerTyID: return ((integer_type*)(this))->get_bitwidth();
|
case IntegerTyID: return std::max<int>(8, ((integer_type*)(this))->get_bitwidth());
|
||||||
case BlockTyID: return ((block_type*)(this))->get_bitwidth();
|
case BlockTyID: return ((block_type*)(this))->get_bitwidth();
|
||||||
default: return 0;
|
default: return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user