Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for txtpb (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/lift_quantizable_spots_as_functions_with_quantization_specs.mlir

    // Tests that `composite_dot_general_fn_1` and its corresponding XlaCallModuleOp
    // contains attributes required for quantization, including the
    // `_quantization_method` attribute that contains textpb of `Method`.
    
    // DISABLE-ALL-DOT-GENERAL: @main
    func.func @main(%arg0: tensor<1x1x167xf32>) -> tensor<1x1x64xf32> {
      %0 = stablehlo.constant dense<2.000000e+00> : tensor<167x64xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 18:09:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top