| add python ut
| 23 天前 |
| Disable Torch_Aten_AdaptiveAvgPool2dOp Canonicalize
| 23 天前 |
| Add symbolic shape inference for ReduceSumOp and BroadcastToOp
| 23 天前 |
| fix(mfusion): disable aten.clone fold, refine reciprocal canonicalize, and sync torch-mlir patch docs.
| 23 天前 |
| Fix mfusion rank0 scalar and batch matmul lowering
Lower aclnn.batch_matmul transpose flags with explicit permutes before bmm/matmul conversion.
Use torch.prims.convert_element_type for mfuse.cast, rewrite splat vtensor literals through full, and cast mixed-type binary operands to the result element type.
Prevent DVM clustering for ops that consume unsafe external rank-zero tensor operands while allowing safe constant/full scalar producers.
| 23 天前 |
| rename muse dialect to mfuse
| 23 天前 |
| fix(mfusion): PermuteOp loses symbolic shape encoding on dynamic tensors
When creating PermuteOp with dynamic-shape input, the output tensor
was missing symshape encoding, triggering VerifySymbolicShapeTrait:
'mfuse.permute' op failed symbolic shape verification
Implement InferSymbolicShapeInterface for PermuteOp so that symshape
encoding is automatically inferred from input + perm attribute at
construction time via SymbolicBuilderHelper. Add
SymbolAttrUtils::permuteSymbolicShapeExprs utility and two dynamic-shape
lit test cases.
| 23 天前 |
| Fuse numtotensor and cast or single numtotensor to full
| 23 天前 |
| Add symbolic shape inference for ReduceSumOp and BroadcastToOp
| 23 天前 |
| Add InferSymbolicShape interface and reshape by result type
- Introduce InferSymbolicShapeInterface for ops to infer symbolic result
dimensions from builder/state/result type.
- Change Mfuse ReshapeOp to take only input tensor; output shape is encoded
in result type (semi-static: at most one dynamic dim). ReshapeOp implements
the interface and uses SymbolicBuilderHelper in its builder.
- TorchToMfuse: lower aten.reshape and aten.view to mfuse.reshape(result_type, input);
remove PDLL ConvertAtenReshape.
- MfuseToTorch: derive view shape from reshape result type (static dims as
constants, dynamic as -1).
- Update MatMul fusion passes and tests for the new single-operand reshape.
| 23 天前 |
| Fuse reshape converted from squeeze and unsqueeze
| 23 天前 |