Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MatchBinaryReduceFunction (0.16 sec)

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

    }
    
    // Check if the specified region is a binary reduction function that takes 2
    // inputs and returns the second input. Functions like this are used by update
    // scatter like ops.
    template <>
    LogicalResult MatchBinaryReduceFunction<void>(mlir::Region& function) {
      Block& body = function.front();
      if (body.getNumArguments() != 2) return failure();
    
      mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h

              !updates_type.hasStaticShape()) {
            return failure();
          }
    
          // Match the scatter computation against computations supported by TF.
          if (failed(MatchBinaryReduceFunction<BinaryOp>(
                  scatter_op.getUpdateComputation()))) {
            return failure();
          }
    
          auto scatter_dimension_numbers = scatter_op.getScatterDimensionNumbers();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top