Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 150 for RewritePatternSet (0.34 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization_pass.cc

    // Perform tf.data optimizations.
    struct TFDataOptimization
        : public impl::TFDataOptimizationPassBase<TFDataOptimization> {
      void runOnOperation() override {
        RewritePatternSet patterns(&getContext());
        mlir::TF::PopulateTFDataOptimizationPatterns(&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)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

                                                  MLIRContext *context) {
      results.add<RemoveRedundantGetLength>(context);
    }
    
    void BuildListOp::getCanonicalizationPatterns(RewritePatternSet &results,
                                                  MLIRContext *context) {
      results.add<BuildConstantListAsAttr>(context);
    }
    
    void TFRQuantRawDataOp::getCanonicalizationPatterns(RewritePatternSet &results,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/unfuse_mhlo_batch_norm.cc

      explicit UnfuseMhloBatchNormPass() = default;
    
     private:
      void runOnOperation() override;
    };
    
    void UnfuseMhloBatchNormPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      mhlo::populateUnfuseBatchNormPatterns(ctx, &patterns);
    
      if (failed(
              applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)))) {
        return signalPassFailure();
      }
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 06:28:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/examples/example_hardware.h

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    class ExampleHardware : public SimpleHardware {
     public:
      static constexpr char kId[] = "ExampleHardware";
    
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override;
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<ExampleHardware>();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.h

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    class NNAPIHardware : public SimpleHardware {
     public:
      static constexpr char kId[] = "NNAPI";
    
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override;
    
      mlir::TypeID GetTypeId() const override {
        return mlir::TypeID::get<NNAPIHardware>();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 27 15:05:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/passes.h

    namespace TFR {
    
    // Scans the func op and adds all the canonicalization patterns of the ops
    // except the tf ops, inside the function.
    void populateCanonicalizationPatterns(func::FuncOp func,
                                          RewritePatternSet &patterns);
    
    // Decompose ops.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateDecomposeTFOpsPass(
        std::optional<ModuleOp> tfr_module = std::nullopt);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/passes.h

                                    RewritePatternSet* patterns);
    
    // Populates TF to MHLO legalization for some of the quantization ops.
    //
    // TODO(hinsu): Remove this once we combine quantized and non quantized op
    // legalization in the ODML conversion pipeline.
    void PopulateLegalizeTfQuantizationPatterns(MLIRContext* context,
                                                RewritePatternSet* patterns);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.h

    // which automatically locks all resource variables.
    void PopulateDecomposeResourceOpsPatterns(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.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    LogicalResult BatchMatMulV2Op::verify() { return Verify(*this); }
    
    void BatchMatMulOp::getCanonicalizationPatterns(RewritePatternSet& results,
                                                    MLIRContext* context) {
      results.add<BatchMatMulToV2>(context);
    }
    
    void BatchMatMulV2Op::getCanonicalizationPatterns(RewritePatternSet& results,
                                                      MLIRContext* context) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.cc

      void runOnOperation() override;
    };
    
    #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.inc"
    
    void OptimizeIntGraph::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      populateWithGenerated(patterns);
      auto func = getOperation();
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 24 02:26:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top