refactor(debugging): improve error message of unfused astype

This commit is contained in:
Umut
2021-11-11 14:15:42 +03:00
parent d244bcace9
commit b449ddc360
2 changed files with 4 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ def check_node_compatibility_with_mlir(
if node.op_name == "TLU": # pragma: no cover
return "only unsigned integer lookup tables are supported"
if node.op_name.startswith("astype"):
return f"{node.op_name} is not supported without fusing"
# e.g., `np.absolute is not supported for the time being`
return f"{node.op_name} is not supported for the time being"
else:

View File

@@ -1074,7 +1074,7 @@ function you are trying to compile isn't supported for MLIR lowering
%8 = Mul(%7, %0) # EncryptedScalar<Float<64 bits>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only integer multiplication is supported
%9 = astype(int32)(%8) # EncryptedScalar<Integer<signed, 5 bits>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ astype(int32) is not supported for the time being
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ astype(int32) is not supported without fusing
return(%9)
""".lstrip() # noqa: E501
),