When using the `outerDiv' function on matrices filled with zeros, we get an exception (most likely from C++), but no custom error message from daphne. This is only the case when dividing two scalar integers.
Examples:
Using the outerDiv function with two matrices filled with zeros:
X = rand(10, 10, 0, 2, 0, -1);
Y = rand(10, 10, 0, 2, 0, -1);
Z = X / Y;
Output:
Floating point exception
Using the / functionality with two scalar zero floats:
print(0.0 / 0.0);
Output:
nan
3, Using the / functionality with two scalar zero integers:
print(0 / 0);
Output:
[error]: Lowering pipeline error.CanonicalizerPass (mlir::daphne::EwDivOp::fold) failed with the following message [ Can't divide by 0 ]
To my knowledge, the first 2 examples should be caught by daphne and throw a custom error message like in the third example.
Description:
When using the `outerDiv' function on matrices filled with zeros, we get an exception (most likely from C++), but no custom error message from daphne. This is only the case when dividing two scalar integers.
Examples:
Using the
outerDiv
function with two matrices filled with zeros:Output:
Using the
/
functionality with two scalar zero floats:Output:
3, Using the
/
functionality with two scalar zero integers:Output:
To my knowledge, the first 2 examples should be caught by daphne and throw a custom error message like in the third example.