Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ReductionOp (0.18 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h

    // returns the result.
    template <typename ReductionOp>
    LogicalResult MatchBinaryReduceFunction(mlir::Region& function) {
      Block& body = function.front();
      if (body.getNumArguments() != 2) return failure();
    
      mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back());
      if (!return_op) return failure();
      if (return_op.getNumOperands() != 1) return failure();
    
      ReductionOp reduce_op = dyn_cast_or_null<ReductionOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 11:35:25 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top