mirror of https://github.com/llvm/torch-mlir
[TOSA] Add todtype f64 and i1 to f32 support (#1845)
parent
5710871f4f
commit
e85def790c
|
@ -231,6 +231,9 @@ static LogicalResult checkValidityOfCast(Type src, Type dest) {
|
|||
(src.isInteger(32) && dest.isF32()) ||
|
||||
(src.isInteger(8) && dest.isInteger(1)) ||
|
||||
(src.isInteger(1) && dest.isInteger(64)) ||
|
||||
(src.isInteger(1) && dest.isF32()) ||
|
||||
(src.isF32() && dest.isF64()) ||
|
||||
(src.isF64() && dest.isF32()) ||
|
||||
(src.isF32() && dest.isInteger(8)) ||
|
||||
(src.isF32() && dest.isInteger(1))) {
|
||||
return success();
|
||||
|
|
Loading…
Reference in New Issue