-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom assembly form for mhlo.reduce does not roundtrip with locations #25
Comments
I changed the syntax recently so that's likely on me, I'll try to look into this. |
I can't repro with milo-opt because |
Actually |
Thanks! |
…cal-scope=false When printing without the local scope, the locations are printed at the end of the file and refered to with aliases. When parsing back we don't have the location at hand and instead the parser handled itself the remapping of the location when parsing is done. This use to crash and has been fixed in MLIR. Fixes tensorflow/mlir-hlo#25 PiperOrigin-RevId: 422838347 Change-Id: Ief59f4fdb5bdc0ffa43d95611f3d1edeea38d97b
Have not triaged yet, but the attached file fails to roundtrip some forms of the mhlo.reduce op with location info.
Example of failure:
Reports: "expected location instance"
Repro:
reduce_parse_error.mlir.txt
The text was updated successfully, but these errors were encountered: