Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for SignatureDef (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.cc

    #include "tsl/platform/statusor.h"
    
    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::GetReportFilePath;
    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    using ::tensorflow::quantization::RunPasses;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/weight_only_ptq.h

    // weight-only quantization.
    //
    // `signature_keys` specify the signatures that correspond to functions to be
    // quantized. `signature_def_map` connects the signature keys to
    // `SignatureDef`s.
    //
    // Returns a non-OK status when the quantization is not successful.
    // LINT.IfChange
    absl::Status QuantizeWeightOnlyPtq(
        absl::string_view src_saved_model_path,
        absl::string_view dst_saved_model_path,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 12:18:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/python/pywrap_quantization.cc

            `dst_saved_model_path`.
    
            The user should pass a serialized `QuantizationConfig` for the
            `quantization_config_serialized` argument, and a signature key ->
            serialized `SignatureDef` mapping for the `signature_def_map_serialized`
            argument.
    
            Raises `StatusNotOk` exception if when the run was unsuccessful.
            )pbdoc",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 13:51:40 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h

          const ExportedModel& exported_model,
          absl::string_view src_saved_model_path,
          const std::unordered_set<std::string>& tags,
          const absl::flat_hash_map<std::string, tensorflow::SignatureDef>&
              signature_def_map) const = 0;
      // LINT.ThenChange(
      //     pywrap_function_lib.pyi:save_exported_model,
      //     py_function_lib.py:save_exported_model,
      // )
    
    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/representative_dataset.py

        Args:
          path_map: Signature def key -> path mapping. Each path is a TFRecord file
            to which a `RepresentativeDataset` is saved. The signature def keys
            should be a subset of the `SignatureDef` keys of the
            `representative_dataset` argument of the `save()` call.
          expected_input_key_map: Signature def key -> expected input keys. If set,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_function_lib.cc

    #include "tensorflow/core/protobuf/meta_graph.pb.h"
    
    namespace py = ::pybind11;
    
    namespace {
    
    using ::stablehlo::quantization::CalibrationOptions;
    using ::stablehlo::quantization::MinMaxValue;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::calibrator::CalibrationStatistics;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    using ::tensorflow::quantization::RepresentativeDatasetFile;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:33:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/type_casters.h

        : public internal::SerializedProtobufCaster<
              ::stablehlo::quantization::CalibrationOptions> {};
    
    template <>
    struct type_caster<tensorflow::SignatureDef>
        : public internal::SerializedProtobufCaster<tensorflow::SignatureDef> {};
    
    template <>
    struct type_caster<tensorflow::GraphDef>
        : public internal::SerializedProtobufCaster<tensorflow::GraphDef> {};
    
    template <>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

    
    def _serialize_signature_def_map(
        signature_def_map: _SignatureDefMap,
    ) -> dict[str, bytes]:
      """Serializes SignatureDef values in `signature_def_map`.
    
      Args:
        signature_def_map: Signature key -> SignatureDef mapping.
    
      Returns:
        Signature def map where the values (`SignatureDef`) are serialized.
      """
      signature_def_map_serialized = {}
      for key, signature_def in signature_def_map.items():
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h

          absl::string_view src_saved_model_path,
          absl::flat_hash_map<FunctionName, FunctionAlias> function_aliases,
          std::unordered_set<std::string> tags,
          absl::flat_hash_map<std::string, tensorflow::SignatureDef>
              signature_def_map,
          std::vector<std::string> signature_keys);
    
      // Runs calibration on `module_op` and returns a calibrated ModuleOp with
      // calibrated statistics embedded.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

    using ::stablehlo::quantization::io::CreateTmpDir;
    using ::stablehlo::quantization::io::GetLocalTmpFileName;
    using ::stablehlo::quantization::io::ListDirectory;
    using ::tensorflow::AssetFileDef;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::calibrator::CalibrationStatistics;
    using ::tensorflow::quantization::ExportedModel;
    using ::tensorflow::quantization::PyFunctionLibrary;
    using ::tensorflow::quantization::RunPasses;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top