Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 150 for RewritePatternSet (0.48 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

    };
    
    static PassRegistration<QuantizeWeightsPass> pass;
    
    void QuantizeWeightsPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      auto module_op = getOperation();
      RewritePatternSet patterns(ctx);
    
      patterns.add<QuantizeConstWeights>(ctx, quant_options_);
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      return target_opset_ == OpSet::XLA &&
             (quant_specs_.weight_only_quantization ||
              quant_specs_.weight_quantization);
    }
    
    void QuantizePass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      auto func = getOperation();
      auto* ctx = func.getContext();
    
      quant_specs_.weight_quantization = weight_quantization_;
      const QuantPassSpec quant_params = {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

            rewriter.cancelOpModification(caller);
          }
        }
        return success();
      }
    };
    
    void DecomposeOptionalsPass::runOnOperation() {
      mlir::ModuleOp module = getOperation();
    
      RewritePatternSet pattern_list(&getContext());
      pattern_list.add<HandleOptionalFrom>(&getContext());
      pattern_list.add<HandleOptionalGet>(&getContext());
      pattern_list.add<HandleOptionalNone>(&getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

                                               cast_op);
        return success();
      }
    };
    
    void BroadcastToOp::getCanonicalizationPatterns(RewritePatternSet& results,
                                                    MLIRContext* context) {
      results.add<ConvertBroadcastToReshape>(context);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(OutlineCompositesPass)
    
      void runOnOperation() override {
        auto func = getOperation();
        RewritePatternSet patterns(&getContext());
        patterns.add<OutlineGELU>(&getContext());
        if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
          signalPassFailure();
        }
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

      }
    };
    
    void InsertWeightParamPass::runOnOperation() {
      func::FuncOp func = getOperation();
      MLIRContext* context = func.getContext();
      RewritePatternSet patterns(context);
    
      patterns.add<InsertWeightParamPattern>(context);
    
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

    #include "tensorflow/compiler/mlir/lite/transforms/generated_optimize_batch_matmul.inc"
    
    void OptimizeBatchMatmulPass::runOnOperation() {
      auto func = getOperation();
      auto* ctx = &getContext();
    
      RewritePatternSet patterns(ctx);
      patterns.add<ConvertBatchMatMulOp2FullyConnectedOp,
                   ConvertBatchMatMulOpToReduceSum>(ctx);
      TFL::populateWithGenerated(patterns);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

                        quant::QuantizationDialect, shape::ShapeDialect>();
      }
    
      void runOnOperation() override {
        ModuleOp module_op = getOperation();
        RewritePatternSet patterns(&getContext());
        patterns.add<ConvertTFXlaCallModuleOp>(&getContext(), module_op);
        patterns.add<RemoveCustomCallWithSharding>(&getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

          llvm::errs() << "Tried legalizing to tfl custom tensorlist ops, but not "
                          "all can be supported."
                       << "\n";
          return;
        }
        RewritePatternSet patterns(&getContext());
        populateWithGenerated(patterns);
        patterns.add<ConvertTensorListPopBack>(&getContext());
        patterns.add<ConvertTensorListPushBack>(&getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

    };
    
    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.inc"
    
    void PreprocessOpPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      ModuleOp module_op = getOperation();
    
      populateWithGenerated(patterns);
      patterns.add<PreprocessConstantOp>(ctx, op_set_, quantization_method_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top