Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for save_exported_model (0.26 sec)

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

    # limitations under the License.
    # ==============================================================================
    from typing import Any, Optional
    
    class PyFunctionLibrary:
    
      # LINT.IfChange(save_exported_model)
      def save_exported_model(
          self,
          dst_saved_model_path: str,
          exported_model_serialized: bytes,
          src_saved_model_path: str,
          tags: set[str],
          serialized_signature_def_map: dict[str, bytes],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_function_lib.cc

    }  // namespace
    
    PYBIND11_MODULE(pywrap_function_lib, m) {
      py::class_<PyFunctionLibrary, PyFunctionLibraryTrampoline>(
          m, "PyFunctionLibrary")
          .def(py::init<>())
          .def("save_exported_model", &PyFunctionLibrary::SaveExportedModel,
               py::arg("dst_saved_model_path"),
               py::arg("exported_model_serialized"),
               py::arg("src_saved_model_path"), py::arg("tags"),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

      """
    
      # LINT.IfChange(save_exported_model)
      def save_exported_model(
          self,
          dst_saved_model_path: str,
          exported_model_serialized: bytes,
          src_saved_model_path: str,
          tags: set[str],
          serialized_signature_def_map: dict[str, bytes],
      ) -> Optional[bool]:
        # LINT.ThenChange(py_function_lib.h:save_exported_model)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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