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

Fixing the access of scalar elements in broadcast_in_dim, clamp, and select operations #1777

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

sdasgup3
Copy link
Member

Semantics of some operations like broadcast_in_dim, clamp, and select, with one or more of the input operands potentially be scalars, needs implicit broadcasting. For example, operand for broadcast_in_dim, min/max for clamp, pred for select.

The current PR fixes the access of those operands, to indicate proper deference of the tensor type to element type, in the specification of these operations.

@sdasgup3 sdasgup3 merged commit 9044a98 into openxla:main Sep 18, 2023
7 checks passed
penagos pushed a commit to penagos/stablehlo that referenced this pull request Sep 21, 2023
…and `select` operations (openxla#1777)

Semantics of some operations like `broadcast_in_dim`, `clamp`, and
`select`, with one or more of the input operands potentially be scalars,
needs implicit broadcasting. For example, `operand` for
`broadcast_in_dim`, `min`/`max` for `clamp`, `pred` for `select`.

The current PR fixes the access of those operands, to indicate proper
deference of the tensor type to element type, in the specification of
these operations.
penagos pushed a commit to penagos/stablehlo that referenced this pull request Sep 21, 2023
…and `select` operations (openxla#1777)

Semantics of some operations like `broadcast_in_dim`, `clamp`, and
`select`, with one or more of the input operands potentially be scalars,
needs implicit broadcasting. For example, `operand` for
`broadcast_in_dim`, `min`/`max` for `clamp`, `pred` for `select`.

The current PR fixes the access of those operands, to indicate proper
deference of the tensor type to element type, in the specification of
these operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants