mirror of https://github.com/llvm/torch-mlir
2e194e13d6
This PR fixes the bugs for `Torch::AtenOneHotOp` by: 1) Using `Torch::kUnknownSize` as the default value for `numClasses` in the pattern matching stage in `DecomposeAtenOneHotOp` 2) Adding `AtenIntScalarOp` to the patterns in `TorchToArith` 3) Handling both `int` and `float` types for `off` and `on` values in `TorchOnnxToTorch` conversion It also includes: 1) A new test in `TorchToArith/basic.mlir`, for `torch.aten.Int.Scalar`, and 2) A new test in `decompose-complex-ops.mlir`, for `torch.aten.one_hot` **Dependencies** This PR is dependent on #3334. |
||
---|---|---|
.. | ||
GlobalizeObjectGraph | ||
adjust-calling-conventions.mlir | ||
canonicalize.mlir | ||
decompose-complex-ops-legal.mlir | ||
decompose-complex-ops.mlir | ||
drop-abstract-interp-calculations.mlir | ||
erase-module-initializer.mlir | ||
fuse-quantized-ops.mlir | ||
inline-global-slots-analysis.mlir | ||
inline-global-slots-transform.mlir | ||
invalid.mlir | ||
lower-to-backend-contract-error.mlir | ||
match-quantized-customs-ops.mlir | ||
maximize-value-semantics.mlir | ||
ops.mlir | ||
prepare-for-globalize-object-graph.mlir | ||
reduce-op-variants-error.mlir | ||
reduce-op-variants.mlir | ||
refine-public-return.mlir | ||
reify-dtype-calculations.mlir | ||
reify-shape-calculations.mlir | ||
scalarize-shapes.mlir | ||
simplify-dtype-calculations.mlir | ||
simplify-shape-calculations.mlir | ||
torch-function-to-torch-backend-pipeline.mlir | ||
torch-nary-canonicalize.mlir | ||
verify-backend-contract-error.mlir | ||
verify-backend-contract-unimplemented-op.mlir |