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

Add support for folding constant unary non-compute ops in RTVar optimization #64652

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

copybara-service[bot]
Copy link

Add support for folding constant unary non-compute ops in RTVar optimization

So far we can only optimize away RTVars that refer to a constant or iota
HLO op. This change is extending that to unary ops without compute (given
the operand is also constant).

That includes:

  • Bitcast
  • Broadcast
  • Reshape
  • Reverse
  • Slice
  • Transpose

@copybara-service copybara-service bot force-pushed the exported_pr_619173229 branch 3 times, most recently from 3e9461b to db148a9 Compare March 28, 2024 12:44
…ization

So far we can only optimize away RTVars that refer to a `constant` or `iota`
HLO op. This change is extending that to unary ops without compute (given
the operand is also constant).

That includes:
- Bitcast
- Broadcast
- Reshape
- Reverse
- Slice
- Transpose

PiperOrigin-RevId: 619898399
@copybara-service copybara-service bot merged commit 3f12e20 into master Mar 28, 2024
@copybara-service copybara-service bot deleted the exported_pr_619173229 branch March 28, 2024 13:22
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