Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 150 for RewritePatternSet (0.36 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/xla_call_module_to_call.cc

        return success();
      }
    };
    
    void XlaCallModuleToCallPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      MLIRContext* ctx = module_op.getContext();
      RewritePatternSet patterns(&getContext());
      patterns.add<XlaCallModuleOpToCallOp>(ctx);
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 20:02:00 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf_mlir_reduce_main.cc

     public:
      explicit TFReductionPatternInterface(mlir::Dialect *dialect)
          : DialectReductionPatternInterface(dialect) {}
    
      void populateReductionPatterns(
          mlir::RewritePatternSet &patterns) const final {
        populateWithGenerated(patterns);
      }
    };
    
    }  // namespace
    
    int main(int argc, char *argv[]) {
      tensorflow::InitMlir y(&argc, &argv);
    
      mlir::DialectRegistry registry;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 21 20:13:57 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/shlo_simplify.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(SHLOSimplifyPass)
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        RewritePatternSet patterns(&getContext());
        populateWithGenerated(patterns);
        PopulateFolderPatterns(patterns);
        if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
          signalPassFailure();
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 03:05:20 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization.cc

    };
    
    #include "tensorflow/compiler/mlir/tensorflow/transforms/generated_tf_data_optimization.inc"
    }  // namespace
    
    void PopulateTFDataOptimizationPatterns(MLIRContext *context,
                                            RewritePatternSet *patterns) {
      patterns->add<FuseParallelMapAndBatch>(context);
      populateWithGenerated(*patterns);
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla_passes.h

    /// included if there is no native MLIR legalization for the op.
    void PopulateLegalizeTfWithTf2XlaPatterns(llvm::StringRef device_type,
                                              RewritePatternSet& patterns,
                                              MLIRContext* ctx,
                                              Tf2XlaTypeConverter& converter,
                                              bool prefer_tf2xla = false);
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc

        return success();
      }
    };
    
    }  // end anonymous namespace
    
    void populateTfControlFlowToScfPatterns(MLIRContext* context,
                                            RewritePatternSet* patterns) {
      patterns->add<ConvertIfRegionOp, ConvertWhileRegionOp>(context);
    }
    
    #define GEN_PASS_DEF_CONVERTTFCONTROLFLOWTOSCFPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.cc

     private:
      void runOnOperation() override;
    };
    
    #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.inc"
    
    void OptimizeGraphPass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      populateWithGenerated(patterns);
      auto func = getOperation();
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 21 20:11:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_quantized.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    class LowerQuantizedPass
        : public impl::LowerQuantizedPassBase<LowerQuantizedPass> {
     public:
      void runOnOperation() override {
        RewritePatternSet patterns(&getContext());
        mlir::TF::PopulateLoweringQuantizedPatterns(&getContext(), &patterns);
        (void)applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
      }
    };
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf_test_pass.cc

    // TensorFlow operations.
    struct LowerTF : public impl::TestTensorFlowLowerTFPassBase<LowerTF> {
      void runOnOperation() override {
        // Add lowering patterns to the list.
        RewritePatternSet patterns(&getContext());
        if (default_patterns_) {
          mlir::TF::PopulateLoweringTFPatterns(&getContext(), &patterns);
        }
        if (pre_hlo_patterns_) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.h

    // op into tf.Reshape, tf.Slice, tf.MatMul, tf.Pack, and tf.Reshape ops.
    void PopulateUnrollTfBatchMatMul(MLIRContext* context,
                                     RewritePatternSet& patterns);
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top