- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MatchIota (0.44 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.h
// 1. IotaOp. // 2. IotaOp + BroadCastInDim. // 3. IotaOp + Reshape. // 4. Constant (folded Iota) + BroadCastInDim. // 5. Constant (folded result). // Moreover, the dimensions has to match the iota_dimension. bool MatchIota(DenseIntElementsAttr dimensions, Value iota); } // namespace odml } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h
if (iota_init.getValues<APInt>()[0] != 0) return failure(); // Verify that the second argument is an Iota op along the same dimension // as the reduction. Value iota = reduce_op.getInputs().back(); if (!MatchIota(reduce_op.getDimensions(), iota)) return failure(); // Match the reduction computation. const bool is_float = mlir::isa<FloatType>(operand_init.getElementType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc
// 1. IotaOp. // 2. IotaOp + BroadCastInDim. // 3. IotaOp + Reshape. // 4. Constant (folded Iota) + BroadCastInDim. // 5. Constant (folded result). // Moreover, the dimensions has to match the iota_dimension. bool MatchIota(DenseIntElementsAttr dimensions, Value iota) { return MatchSingleIota(dimensions, iota) || MatchIotaBroadCastInDim(dimensions, iota) || MatchReshapedIota(dimensions, iota) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
// In the following, we'll check indices is obtained by a iota. auto sort_dim_attr = DenseIntElementsAttr::get( RankedTensorType::get({1}, rewriter.getI64Type()), {sort_dim}); if (!MatchIota(sort_dim_attr, indices)) return rewriter.notifyMatchFailure( op, "the second operand is supposed to be obtained from IOTA"); if (!MatchTopKComparator<mhlo::ReturnOp>(op.getComparator()))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0)