- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 75 for calibration (0.58 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc
#include "mlir/Pass/PassManager.h" // from @llvm-project #include "mlir/Support/LLVM.h" // from @llvm-project #include "tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/representative_dataset.h" #include "tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.h" #include "tensorflow/compiler/mlir/quantization/stablehlo/cc/debugger.h" #include "tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h
// py_function_lib.py:save_exported_model, // ) // Runs calibration on a model saved at `saved_model_path`. `exported_model` // should be the corresponding exported model resulting from the // pre-calibration step. `signature_keys` is a set of keys that identify a // SignatureDef to run the calibration on. `tags` is a set of strings that
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 09 06:33:29 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py
) -> tuple[float, float]: """Calculates min and max from statistics using calibration options. Args: statistics: Collected calibration statistics. calib_opts: Calibration options used for calculating min and max. Returns: (min_value, max_value): Min and max calculated using calib_opts. Raises: ValueError: Unsupported calibration method is given. """ calib_method = calib_opts.calibration_method
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 14.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm_test.py
statistics.histogram_statistics.hist_freq.extend(hist_freq.tolist()) # Histogram calibration methods should remove outliers. min_value, max_value = calibration_algorithm.get_min_max_value( statistics, calibration_options ) # Since the min/max values may differ slightly for each calibration method, # also check the nearby values. self.assertAllInRange(min_value, 49, 51)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py
], ) -> bool: """Runs calibration and adds calibration statistics to exported model. Args: saved_model_path: Path to the SavedModel to run calibration. signature_keys: List of signature keys corresponding to SignatureDefs to run calibration on. tags: A set of tags that identify the MetaGraphDef. force_graph_mode_calibration: If True, runs the calibration in graph mode.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 05:32:11 UTC 2024 - 27.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc
using ::tensorflow::calibrator::CalibrationStatistics; using ::tensorflow::calibrator::CalibrationStatisticsCollectorAverageMinMax; using ::tensorflow::calibrator::CalibrationStatisticsCollectorBase; using ::tensorflow::calibrator::CalibrationStatisticsCollectorHistogram; using ::tensorflow::calibrator::CalibrationStatisticsCollectorMinMax; using ::tensorflow::calibrator::CalibrationStatisticsMap; } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 01:31:23 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.cc
namespace { using ::stablehlo::quantization::CalibrationOptions; using ::tensorflow::calibrator::CalibrationStatistics; using ::tensorflow::calibrator::CalibrationStatisticsMap; using ::tensorflow::quantization::PyFunctionLibrary; using CalibrationStatisticsFlatMap = absl::flat_hash_map<std::string, CalibrationStatistics>; } // namespace // Reads the calibration statistics from the given directory.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_base.h
#include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics.pb.h" namespace tensorflow { namespace calibrator { // Abstract base class for CalibrationStatisticsCollcetor such as // CalibrationStatisticsCollectorMinMax. Each class collects different // statistics based on the calibration methods. class CalibrationStatisticsCollectorBase { public: // Collect data for calibration. virtual void Collect(float min, float max,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 05 03:57:26 UTC 2024 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h
namespace mlir::quant::stablehlo { // Performs post-calibration graph transformation as part of post-training // static-range quantization. // // The resulting `ModuleOp` contains quantized StableHLO ops serialized in // `TF::XlaCallModuleOp`s. They are quantized using the statistics collected // after the calibration step, corresponding to each `TF::CustomAggregatorOp`s // in the input module op. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc
clEnumValN(TEST_CASE_HISTOGRAM_PERCENTILE, "HISTOGRAM_PERCENTILE", "Uses HISTOGRAM_PERCENTILE calibration method"), clEnumValN(TEST_CASE_HISTOGRAM_MSE_BRUTEFORCE, "HISTOGRAM_MSE_BRUTEFORCE", "Uses HISTOGRAM_MSE_BRUTEFORCE calibration method"), clEnumValN(TEST_CASE_HISTOGRAM_MSE_MAX_FREQUENCY,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 14.8K bytes - Viewed (0)