Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          mhlo::ReduceOp reduce_op, OpAdaptor adaptor,
          ConversionPatternRewriter& rewriter) const final {
        if (failed(MatchReduceOpOperand(reduce_op))) return failure();
    
        if (failed(MatchBinaryReduceFunction<BinaryOp>(reduce_op.getBody())))
          return failure();
    
        auto operand = reduce_op.getInputs()[0];
    
        // Get reduction dimension.
        DenseIntElementsAttr dimension = reduce_op.getDimensions();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    class RewriteQuantizedReduceWindowOpWithMax
        : public OpRewritePattern<stablehlo::ReduceWindowOp> {
     public:
      using OpRewritePattern<stablehlo::ReduceWindowOp>::OpRewritePattern;
    
      LogicalResult MatchBinaryReduceFunction(Region& function) const {
        Block& body = function.front();
        if (body.getNumArguments() != 2) return failure();
    
        auto return_op = dyn_cast<stablehlo::ReturnOp>(body.back());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top