Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the specification of a scalar operand for broadcast_in_dim oper…
…ation (openxla#1774) The specification of broadcasting a scalar operand, using broadcast_in_dim, is unclear. The PR attempts to update the semantics for the operation to accommodate the case. Also, the update is limited to a spec change as the following program ``` func.func @main() -> (tensor<1x750xi32>) { %0 = stablehlo.constant dense<1> : tensor<i32> %1 = stablehlo.broadcast_in_dim %0, dims = [] : (tensor<i32>) -> tensor<1x750xi32> return %1 : tensor<1x750xi32> } ``` is currently a valid representation in StableHLO.
- Loading branch information