- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for txtpb (0.05 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/instrumentations/save_report.h
class SaveQuantizationReportInstrumentation : public PassInstrumentation { public: // `file_path` is the path to save the report file. The report file is in // textproto format so a `.txtpb` extension is preferred but it doesn't result // in error if other extension is used. This instrumentation will not be run // if `file_path` is a `nullopt`. explicit SaveQuantizationReportInstrumentation(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/instrumentations/save_report_test.cc
QuantizeCompositeFunctionsPassOptions options; pm.addPass(createQuantizeCompositeFunctionsPass(options)); const std::string report_file_path = absl::StrCat(testing::TempDir(), "/save_report.txtpb"); pm.addInstrumentation(std::make_unique<SaveQuantizationReportInstrumentation>( report_file_path)); const LogicalResult run_result = pm.run(*module_op); ASSERT_TRUE(succeeded(run_result));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
path_map = {'serving_default': dataset_path} repr_dataset.TfRecordRepresentativeDatasetSaver(path_map).save( {'serving_default': data_gen()} ) report_file_path = self.create_tempfile('report.txtpb').full_path config = qc.QuantizationConfig( static_range_ptq_preset=qc.StaticRangePtqPreset( representative_datasets=[ qc.RepresentativeDatasetConfig(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 51.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc
ParseModuleOpString(kQuantizedDotGeneral); ASSERT_TRUE(module_op); const QuantizationReport report(*module_op); const std::string dst_file_path = absl::StrCat(TempDir(), "/quantization_report.txtpb"); const absl::Status save_status = report.Save(dst_file_path); ASSERT_THAT(save_status, IsOk()); const absl::StatusOr<std::string> file_data = ReadFileToString(dst_file_path); ASSERT_THAT(file_data, IsOk());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 10:10:34 UTC 2024 - 18.5K bytes - Viewed (0)