Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FoldIfOp (0.29 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

                  })
                  .wasInterrupted();
    }
    
    // Folds TensorFlow If op with constant conditional operand by inlining the
    // function body based on the conditional value.
    class FoldIfOp : public OpRewritePattern<TF::IfOp> {
     public:
      explicit FoldIfOp(MLIRContext* context)
          : OpRewritePattern<TF::IfOp>(context) {}
    
      LogicalResult matchAndRewrite(TF::IfOp op,
                                    PatternRewriter& rewriter) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top