Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for SaveExportedModel (0.34 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_function_lib.cc

    class PyFunctionLibraryTrampoline : public PyFunctionLibrary {
     public:
      using PyFunctionLibrary::PyFunctionLibrary;
    
      std::optional<bool> SaveExportedModel(
          const absl::string_view dst_saved_model_path,
          const ExportedModel& exported_model,
          const absl::string_view src_saved_model_path,
          const std::unordered_set<std::string>& tags,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc

            // tensorflow/python/saved_model/tag_constants.py.
            if (quantization_options.has_debugger_config()) {
              tags.erase("tpu");
            }
            py_function_library.SaveExportedModel(
                dst_saved_model_path, *exported_model, src_saved_model_path, tags,
                signature_def_map);
    
            return absl::OkStatus();
          },
          R"pbdoc(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.cc

                              *ctx, *module));
    
      // Remove the `tpu` tag for exporting because the output quantized model is
      // essentially a CPU model.
      tags.erase("tpu");
    
      py_function_library.SaveExportedModel(
          dst_saved_model_path, post_calibrated_exported_model,
          src_saved_model_path, tags, signature_def_map);
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.cc

                              *ctx, *module));
    
      // Remove the `tpu` tag for exporting because the output quantized model is
      // essentially a CPU model.
      tags.erase("tpu");
    
      py_function_library.SaveExportedModel(
          dst_saved_model_path, post_calibrated_exported_model,
          src_saved_model_path, tags, signature_def_map);
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h

      //
      // If the function signature changes, likely its corresponding .pyi type
      // hinting and definition should also change.
      // LINT.IfChange(save_exported_model)
      virtual std::optional<bool> SaveExportedModel(
          absl::string_view dst_saved_model_path,
          const ExportedModel& exported_model,
          absl::string_view src_saved_model_path,
          const std::unordered_set<std::string>& tags,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

                              *cloned_module_ref, checkpoint_dir, function_aliases_,
                              {asset_file_defs.begin(), asset_file_defs.end()}));
    
      py_function_lib_->SaveExportedModel(dst_saved_model_path, exported_model,
                                          src_saved_model_path_, tags_,
                                          signature_def_map_);
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

      if (calibration_exported_model.has_graph_def()) {
        TF_ASSIGN_OR_RETURN(std::string calibration_saved_model_dir,
                            CreateTmpDir());
        py_function_library.SaveExportedModel(
            calibration_saved_model_dir, calibration_exported_model,
            saved_model_path, tags, signature_def_map);
    
        py_function_library.RunCalibration(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top