EnzymeAD / EnzymeAD/Enzyme-JAX
Expand DotGeneral CSE Pass to handle more equivalence
Open
- Dominant language
- MLIR
- Stars
- 131
- Forks
- 53
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 193
Description
```
%6 = stablehlo.dot_general %4, %5, batching_dims = [0] x [0], contracting_dims = [1] x [1] : (tensor<4x4xf32>, tensor<4x4xf32>) -> tensor<4xf32>
%7 = stablehlo.dot_general %5, %4, batching_dims = [0] x [0], contracting_dims = [1] x [1] : (tensor<4x4xf32>, tensor<4x4xf32>) -> tensor<4xf32>
```
This would be an example. `dot_general(A, B)` can be written as `dot_general(B, A)` if certain patterns on the dot_dimensions hold up. we should expand the current dot general cse pass to account for these
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.