Skip to content

feat(stablehlo): add shape inference for structural ops#67

Merged
dndungu merged 2 commits intomainfrom
p1-shapes-struct
Apr 4, 2026
Merged

feat(stablehlo): add shape inference for structural ops#67
dndungu merged 2 commits intomainfrom
p1-shapes-struct

Conversation

@dndungu
Copy link
Copy Markdown
Contributor

@dndungu dndungu commented Apr 4, 2026

Phase 1 PJRT pipeline: shape inference for structural operations.

dndungu added 2 commits April 2, 2026 14:56
Implement InferStructuralShape for MatMul (2D and batched dot_general),
Transpose (axis permutation), Reshape (element-count validated),
Concat (axis concatenation), Slice (start/end indices), Gather
(indices + slice sizes), and ReduceSum/ReduceMax/ReduceMean (with
keepDims support).

Separate file from shapes.go to avoid conflicts with T61.1.2.
@dndungu dndungu merged commit c8db036 into main Apr 4, 2026
1 check failed
@dndungu dndungu deleted the p1-shapes-struct branch April 4, 2026 01:26
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.

1 participant