Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for saved_model_path (0.2 sec)

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

    }
    
    std::string ExperimentalConvertSavedModelToMlir(
        const std::string& saved_model_path, const std::string& exported_names_str,
        bool show_debug_info, TF_Status* status) {
      // Load the saved model into a SavedModelV2Bundle.
    
      tensorflow::SavedModelV2Bundle bundle;
      auto load_status =
          tensorflow::SavedModelV2Bundle::Load(saved_model_path, &bundle);
      if (!load_status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/metrics.h

    // Returns "/tensorflow/core/saved_model/write/path" cell, which contains
    // the saved_model_path of the SM when it is exported.
    monitoring::GaugeCell<std::string>& SavedModelWritePath();
    
    // Returns "/tensorflow/core/saved_model/write/path_and_fingerprint" cell, which
    // contains the path (saved_model_path) and fingerprint (concatenation of
    // graph_def_program_hash, signature_def_hash, saved_object_graph_hash,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_function_lib.pyi

          tags: set[str],
          serialized_signature_def_map: dict[str, bytes],
      ) -> Optional[bool]: ...
      # LINT.ThenChange()
    
      # LINT.IfChange(run_calibration)
      def run_calibration(
          self,
          saved_model_path: str,
          signature_keys: list[str],
          tags: set[str],
          force_graph_mode_calibration: bool,
          # Value type: RepresentativeDatasetFile.
          representative_dataset_file_map_serialized: 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)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h

              signature_def_map) const = 0;
      // LINT.ThenChange(
      //     pywrap_function_lib.pyi:save_exported_model,
      //     py_function_lib.py:save_exported_model,
      // )
    
      // Runs calibration on a model saved at `saved_model_path`. `exported_model`
      // should be the corresponding exported model resulting from the
      // pre-calibration step. `signature_keys` is a set of keys that identify a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

            func=functools.partial(
                _run_calibration,
                saved_model_path,
                signature_keys,
                tags,
                force_graph_mode_calibration,
                dataset_file_map,
            ),
            error_msg=(
                f'Failed to run calibration on model "{saved_model_path}",'
                f' signature_keys: {signature_keys}, tags: {tags}.'
            ),
        )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

    _DYNAMIC_RANGE_DEFAULT_MIN_NUM_ELEMENTS_FOR_WEIGHTS = 1024
    
    
    def _is_qat_saved_model(saved_model_path: str):
      """Checks if the SavedModel is QAT-enabled by looking for 'FakeQuant' ops."""
      saved_model_proto = saved_model_loader.parse_saved_model(saved_model_path)
      for meta_graph in saved_model_proto.meta_graphs:
        if any(
            node.op.startswith('FakeQuant') for node in meta_graph.graph_def.node
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

        """
        for _ in range(num_examples):
          yield {input_key: random_ops.random_uniform(shape, minval, maxval, dtype)}
    
      def _save_tf1_model(
          self,
          sess: session.Session,
          saved_model_path: str,
          signature_key: str,
          tags: Collection[str],
          inputs: Mapping[str, core.Tensor],
          outputs: Mapping[str, core.Tensor],
          init_op: Optional[ops.Operation] = None,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

    _SignatureDefMap = Mapping[str, meta_graph_pb2.SignatureDef]
    
    
    def get_signatures_from_saved_model(
        saved_model_path: str,
        signature_keys: Optional[Sequence[str]] = None,
        tags: Optional[Collection[str]] = None,
    ) -> Dict[str, meta_graph_pb2.SignatureDef]:
      """Gets a map from signature keys to their SignatureDef.
    
      Args:
        saved_model_path: Path to the saved model.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        # (specified by `kDefaultConstantSizeThresholdInBytes`) for unfreezing.
        self._create_matmul_model(
            input_shape=(1, 20),
            weight_shape=(20, 4096),
            saved_model_path=self._input_saved_model_path,
        )
    
        repr_ds = self._create_data_generator(
            input_key='input_tensor', shape=(1, 20), num_examples=2
        )
    
        tags = {tag_constants.SERVING}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc

          the function matching the signature key.
    
          Raises `StatusNotOk` exception if when the run was unsuccessful.
          )pbdoc",
          py::arg("saved_model_path"), py::arg("dst_saved_model_path"),
          py::arg("quantization_options_serialized"), py::kw_only(),
          py::arg("signature_keys"), py::arg("signature_def_map_serialized"),
          py::arg("py_function_library"),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top