Skip to content
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

When converting a graph to a module that came from MlirXlaOpKernel force the use of _output_shapes. #63434

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Mar 11, 2024

When converting a graph to a module that came from MlirXlaOpKernel force the use of _output_shapes.
When an Op is to be lowered by MlirXlaOpKernel all the output tensor shapes have been thrown away (except in the attribute) - this hasn't been a problem for most kernels because they generate the output shape based on inputs or other features; however, some Ops (e.g. _XlaHostComputeMlir') do not and are broken by the go/tuba bridge changes. This change forces the graph to module conversion to use the _output_shapes attribute, if present, to reintroduce the Op's shape.

@copybara-service copybara-service bot force-pushed the test_609858986 branch 4 times, most recently from bf5198c to 9edce13 Compare March 11, 2024 22:39
…rce the use of _output_shapes.

When an Op is to be lowered by MlirXlaOpKernel all the output tensor shapes have been thrown away (except in the attribute) - this hasn't been a problem for most kernels because they generate the output shape based on inputs or other features; however, some Ops (e.g. _XlaHostComputeMlir') do not and are broken by the go/tuba bridge changes. This change forces the graph to module conversion to use the _output_shapes attribute, if present, to reintroduce the Op's shape.

PiperOrigin-RevId: 614829760
@copybara-service copybara-service bot merged commit 897493e into master Mar 11, 2024
@copybara-service copybara-service bot deleted the test_609858986 branch March 11, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant