- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for min_num_elements_for_weights_ (0.37 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc
quantization_options.quantization_method().preset_method(), quantization_options.op_set(), quantization_options.enable_per_channel_quantization(), quantization_options.min_num_elements_for_weights(), quantization_options.enable_legacy_weight_only(), mlir_dump_file_prefix)); pm.addPass(mlir::createSymbolDCEPass()); pm.addPass(mlir::TF::CreateTFShapeInferencePass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py
# tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc;l=201 if quantization_options.min_num_elements_for_weights == 0: quantization_options.min_num_elements_for_weights = ( _DYNAMIC_RANGE_DEFAULT_MIN_NUM_ELEMENTS_FOR_WEIGHTS ) logging.warning( ( 'QuantizationOptions.min_num_elements_for_weights is not set (0).' ' Setting to the default value: %d.' ),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 34.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h
std::unique_ptr<OperationPass<ModuleOp>> CreateLiftQuantizableSpotsAsFunctionsDRQPass( tensorflow::quantization::QuantizationMethod::PresetMethod quantization_method, tensorflow::quantization::OpSet op_set, int min_num_elements_for_weights); // Replaces tf.CustomAggregator ops with quant.Stats ops for finalizing the // calibration procedure. std::unique_ptr<OperationPass<func::FuncOp>> CreateConvertCustomAggregationOpToQuantStatsPass();
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/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc
mlir::cast<ShapedType>(call_op.getOperand(0).getType()) .getNumElements(); if (num_elements < quant_options_.min_num_elements_for_weights()) { return absl::InternalError( "The params of Gather have fewer number of elements than " "the `min_num_elements_for_weights`."); } } // Disable quantization if the quantization method is NO_QUANTIZE.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 16.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc
if (!hasUsageFromQuantizableOp(op)) return failure(); // Check if the weight size is big enough. int num_elements_threshold = quant_options_.min_num_elements_for_weights(); int num_elements = cast<ShapedType>(op.getType()).getNumElements(); if (num_elements < num_elements_threshold) { op->emitRemark("Quantization is skipped because the op has ")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 11.3K bytes - Viewed (0)