Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CreateQuantizePass (0.29 sec)

  1. tensorflow/compiler/mlir/lite/transforms/passes.h

    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        const quant::QuantizationSpecs& quant_specs,
        const absl::flat_hash_set<std::string>& ops_blocklist = {},
        const absl::flat_hash_set<std::string>& nodes_blocklist = {});
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateDefaultQuantizePass();
    
    // Overloading of CreateQuantizePass which takes only necessary flags to reduce
    // the binary size.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

                quant_specs.default_ranges.second.value_or(0.0),
                quant_specs.IsSignedInferenceType()));
      }
      pass_manager.addNestedPass<mlir::func::FuncOp>(
          mlir::TFL::CreateQuantizePass(quant_specs));
      bool emit_quant_adaptor_ops =
          quant_specs.inference_type != quant_specs.inference_input_type;
      pass_manager.addNestedPass<mlir::func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/quantize.cc

      }
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns_2));
    }
    }  // namespace
    
    // Creates an instance of the TensorFlow Lite dialect QuantizeTFL pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        const quant::QuantizationSpecs& quant_specs,
        const absl::flat_hash_set<std::string>& ops_blocklist,
        const absl::flat_hash_set<std::string>& nodes_blocklist) {
      quant::QuantizationSpecs updated_quant_specs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // input and output types by unwrapping quantization parameters.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass();
    
    // Overloading of CreateQuantizePass which takes QuantizationSpecs.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        QuantizationSpecs quant_specs,
        tensorflow::quantization::OpSet target_opset);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_composite_functions.cc

          enable_per_channel_quantized_weight_;
    
      // QuantizePass modifies FuncOps referenced outside of its given scope
      // and therefore requires a module-level context.
      pm.addPass(createQuantizePass(quantize_options));
      pm.addNestedPass<func::FuncOp>(createPostQuantizePass());
    
      // Convert XlaCallModuleOps lifted but not quantized to func.call op.
      // The reasons these ops are not quantized may be:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

    }  // namespace
    
    // Creates an instance of the TensorFlow dialect Quantize pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass() {
      QuantizationSpecs quant_specs;
      return std::make_unique<QuantizePass>(quant_specs, OpSet::TF);
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        QuantizationSpecs quant_specs, OpSet target_opset) {
      return std::make_unique<QuantizePass>(quant_specs, target_opset);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        // weights even in SRQ.
        pm.addNestedPass<func::FuncOp>(
            CreatePrepareQuantizePass(quant_specs, quantization_method_));
        pm.addNestedPass<func::FuncOp>(
            CreateQuantizePass(quant_specs, target_opset_));
        pm.addNestedPass<func::FuncOp>(CreatePostQuantizePass());
      } else {
        // Apply weight quantization.
        quant_specs.minimum_elements_for_weights = min_num_elements_for_weights_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
Back to top