Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for saved_model_path (0.17 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            tags
        ).meta_info_def.function_aliases
    
      def _create_matmul_model(
          self,
          input_shape: Sequence[int],
          weight_shape: Sequence[int],
          saved_model_path: str,
          bias_fn: Optional[ops.Operation] = None,
          activation_fn: Optional[ops.Operation] = None,
      ) -> module.Module:
        class MatmulModel(module.Module):
          """A simple model with a single matmul.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

          function_aliases = GetFunctionAliases(saved_model_path, tags);
      if (!function_aliases.ok()) {
        return absl::InternalError(absl::StrCat(
            "Failed to get function alias: ", function_aliases.status().message()));
      }
    
      absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> module =
          ImportAndPreprocessSavedModel(
              saved_model_path, signature_keys, tags, context.get(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
Back to top