You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I have noticed that xDSL truncates the precision of floating point numbers in its output. This doesn't affect any pass in particular, since just running the MLIR code through xdsl-opt reduces the precision. Here's a minimal example to reproduce it:
I initially added this to match the MLIR behaviour. It would be great to gather some more examples and match the printing for various float formats. A short-term solution would be to just print with the default Python printing.
Hi there,
I have noticed that xDSL truncates the precision of floating point numbers in its output. This doesn't affect any pass in particular, since just running the MLIR code through xdsl-opt reduces the precision. Here's a minimal example to reproduce it:
After the code is run through
xdsl-opt
it will produce:NOTE: After a Zulip discussion, @AntonLydike pointed out the problem is at
xdsl/xdsl/printer.py
Line 524 in 987abb5
NOTE 2: since in this example we are dealing with a dense attribute, the problem is at
xdsl/xdsl/printer.py
Line 582 in 987abb5
The text was updated successfully, but these errors were encountered: