Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 150 for RewritePatternSet (0.34 sec)

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

     private:
      void runOnOperation() override;
    };
    
    void RemoveShardingCustomCallPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      populateWithGenerated(patterns);
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      if (failed(applyPatternsAndFoldGreedily(func_op, frozen_patterns))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 07:04:47 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.h

    // ops into TF dialect operations.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLiftTfliteFlexOpsPass();
    
    void AddLiftTfliteFlexOpsPatterns(MLIRContext *context,
                                      RewritePatternSet &patterns);
    
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 13 18:29:12 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

    namespace mlir {
    namespace TFL {
    namespace tac {
    namespace {
    #include "tensorflow/compiler/mlir/lite/experimental/tac/transforms/generated_transform_patterns.inc"
    }  // namespace
    
    RewritePatternSet GetHardwareRewritePatterns(MLIRContext* context,
                                                 const std::string& hardware) {
      auto* devce_hardware = GetTargetHardware(hardware);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc

        // to remove all the redundant stats ops.
        RemoveRedundantStatsOps(func_op, func_op_quant_spec,
                                func_op_quant_scale_spec);
    
        RewritePatternSet patterns(ctx);
        // Convert quant stats to int8 quantization parameters.
        // Currently, only activation stats are imported, so narrow_range = false.
        patterns.add<quant::ConvertStatsToQDQs<quantfork::QuantizeCastOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 05:11:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

    struct DecomposeResourceOpsPass
        : public impl::DecomposeResourceOpsPassBase<DecomposeResourceOpsPass> {
      void runOnOperation() override {
        // Add lowering patterns to the list.
        RewritePatternSet patterns(&getContext());
        TF::PopulateDecomposeResourceOpsPatterns(&getContext(), &patterns);
    
        if (failed(applyPatternsAndFoldGreedily(getOperation(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc

        rewriter.replaceOpWithNewOp<mlir::stablehlo::UniformQuantizeOp>(
            q_op, q_op.getResult().getType(), q_op.getArg());
        return success();
      }
    };
    
    void PostQuantizePass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      func::FuncOp func = getOperation();
      MLIRContext* ctx = func.getContext();
      // TODO: b/307463853 - Consider splitting passes for each pattern set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.h

    #include "mlir/IR/PatternMatch.h"  // from @llvm-project
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // nit: Returns all the gpu suitable transformation patterns.
    RewritePatternSet GetHardwareRewritePatternsGPU(MLIRContext* context);
    
    }  // namespace tac
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 03 16:37:16 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

        }
      }
    };
    
    #include "tensorflow/compiler/mlir/lite/stablehlo/transforms/generated_tflite_legalize_hlo.inc"
    void LegalizeHloToTfLitePass::runOnOperation() {
      MLIRContext& context = getContext();
      RewritePatternSet patterns(&getContext());
      // Add new conversion patterns here.
      PopulateLegalizeHloToTFLitePatterns(&patterns, &context);
    
      ConversionTarget target(context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      target.addLegalDialect<TFL::TensorFlowLiteDialect>();
      target.addLegalDialect<arith::ArithDialect>();
      target.addLegalDialect<vhlo::VhloDialect>();
    
      StablehloToOdmlTypeConverter converter;
      RewritePatternSet patterns(context);
      stablehlo::populateStablehloToVhloPatterns(&patterns, &converter, context);
    
      if (failed(applyPartialConversion(module, target, std::move(patterns)))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    #include "tensorflow/compiler/mlir/lite/experimental/tac/transforms/generated_transform_patterns.inc"
    }  // namespace
    
    constexpr char GpuHardware::kId[];  // Define kId.
    
    mlir::RewritePatternSet GpuHardware::GetTransformations(
        MLIRContext* context) const {
      mlir::RewritePatternSet patterns(context);
    
      patterns.add<LowerPackIntoConcatReshape, UnrollSplit, UnrollSplitV, SubToAdd,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top