- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for PostCalibrationComponent (0.47 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/cc/post_calibration.cc
using ::stablehlo::quantization::QuantizationSpecs; using ::tensorflow::quantization::RunPasses; PostCalibrationComponent::PostCalibrationComponent( absl::Nonnull<MLIRContext*> ctx) : ctx_(ABSL_DIE_IF_NULL(ctx)) {} // Crash OK absl::StatusOr<ModuleOp> PostCalibrationComponent::Run( ModuleOp module_op, const QuantizationConfig& config) { TF_RETURN_IF_ERROR(RunPasses( kName, /*add_passes_func=*/
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/post_calibration.h
// in the input module op. class PostCalibrationComponent : public Component { public: // Name of the post-training quantization post-calibration step. Used for // debugging purposes. static constexpr absl::string_view kName = "quant_ptq_post_calibration"; explicit PostCalibrationComponent(absl::Nonnull<MLIRContext*> ctx); absl::StatusOr<ModuleOp> Run(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 12:53:33 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.cc
ctx_, py_function_library, src_saved_model_path, std::move(function_aliases), std::move(tags), std::move(signature_def_map), std::move(signature_keys)); sub_components_[2] = std::make_unique<PostCalibrationComponent>(ctx_); } absl::StatusOr<ModuleOp> StaticRangePtqComponent::Run( ModuleOp module_op, const QuantizationConfig& config) { // Runs sub-components in sequence: PreCalibrationComponent ->
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.h
static constexpr absl::string_view kName = "quant_static_range_ptq"; // Constructs `StaticRangePtqComponent` by creating three sub-components: // `PreCalibrationComponent`, `CalibrationComponent`, and // `PostCalibrationComponent`. These are stored in `sub_components_` in // sequence. All arguments except `ctx` is used to initialize // `CalibrationComponent`. For detailed explanation of each argument, see the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 19 02:44:03 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.td
]; } def TestPostCalibrationComponentPass : Pass<"stablehlo-test-post-calibration-component", "mlir::ModuleOp"> { let summary = "Test-only pass to test the PostCalibrationComponent."; let description = [{ Runs the post-calibration passes for post-training quantization. }]; let options = [ Option<"unpack_quantized_types_", "unpack-quantized-types", "bool",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:21:42 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_post_calibration_component.cc
const QuantizationConfig new_config = ExpandPresets(config); PipelineConfig pipeline_config; pipeline_config.set_unpack_quantized_types(unpack_quantized_types_); PostCalibrationComponent component(&ctx); component.AddPasses(pm, new_config.specs(), pipeline_config); if (failed(runPipeline(pm, module_op))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 12:53:33 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc
using ::mlir::quant::stablehlo::FunctionName; using ::mlir::quant::stablehlo::GetFunctionAliases; using ::mlir::quant::stablehlo::kExportStepSuffix; using ::mlir::quant::stablehlo::PostCalibrationComponent; using ::mlir::quant::stablehlo::PreCalibrationComponent; using ::mlir::quant::stablehlo::RunCalibrationPasses; using ::mlir::quant::stablehlo::UpdateFunctionAliases;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 23.8K bytes - Viewed (0)