- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 38 for QuantizationSpecs (0.23 sec)
-
tensorflow/compiler/mlir/lite/transforms/passes.h
// Use quant_specs.ops_blocklist and quant_specs.nodes_blocklist if possible // as they are now structure variables of QuantizationSpecs. 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 = {});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 21:29:34 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/quantization.py
signature_def_map_serialized[key] = signature_def.SerializeToString() return signature_def_map_serialized def _has_quantization_method( quantization_specs: qc.QuantizationSpecs, method: str ) -> bool: """Returns whether a given QuantizationSpecs has the given quantization method.""" for spec in quantization_specs.specs: if spec.method.HasField(method): return True return False
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 12:53:33 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
quant_specs_.enable_mlir_dynamic_range_quantizer = true; } // Constructor used by manually creating the pass. explicit PrepareDynamicRangeQuantizePass( const quant::QuantizationSpecs& quant_specs) : quant_specs_(quant_specs) { enable_dynamic_range_per_channel_quantization_ = !quant_specs_.disable_per_channel; enable_dynamic_range_per_channel_quantization_for_dense_layers_ =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.h
#include "mlir/Pass/Pass.h" // from @llvm-project // IWYU pragma: keep namespace mlir::quant::stablehlo::testing { // Identifies predefined `QuantizationSpecs` for // `TestLiftQuantizableSpotsAsFunctionsWithQuantizationSpecsPass`. The pass // option argument is specified in line comments for each enum value. enum class TestQuantizationSpecs {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:21:42 UTC 2024 - 1.8K bytes - Viewed (0) -
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); // Creates an instance of the PrepareQuantize pass, which will perform similar
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/common/tfl_pass_config.h
namespace mlir { namespace TFL { // A config that controls which passes get run as part TFLite converter. struct PassConfig { explicit PassConfig(quant::QuantizationSpecs specs) : quant_specs(std::move(specs)) {} // If `emit_builtin_tflite_ops` is true, TF Lite legalization passes will be // added, which produces TF Lite ops. bool emit_builtin_tflite_ops = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 19:05:30 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
explicit PrepareQuantizePass() { quant_specs_.inference_type = tensorflow::DT_QINT8; } // Constructor used by manually creating the pass. explicit PrepareQuantizePass(const QuantizationSpecs& quant_specs, QuantMethod quantization_method) : quant_specs_(quant_specs) { quant_specs_.inference_type = tensorflow::DT_QINT8;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto
// datasets are required for static-range PTQ to retrieve quantization // statistics via calibration. // // This preset is equivalent to the following `QuantizationSpecs`: // // ``` // specs {matcher {function_name {regex: ".*"}} method {static_range_ptq {}}} // specs { // matcher {function_name {regex: "composite_conv.*"}} // method {static_range_ptq {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 14.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.h
using CustomOpMap = std::unordered_map<std::string, CustomOpInfo>; enum CustomOpUpdateOptions { kInputIndices, kWeightOnly, kNoSideEffect }; enum class QDQConversionMode { kQDQNone, kQDQStatic, kQDQDynamic }; struct QuantizationSpecs { // Which function this node quant specifications belong to. std::string target_func = "main"; // Whether to trigger quantization passses for post-training quantization.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 10:16:19 UTC 2024 - 10.8K bytes - Viewed (0)