Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for MetaGraphDef (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

      Args:
        saved_model_path: Path to the saved model.
        signature_keys: List of keys identifying SignatureDef to retrieve. If None,
          retrieve all except the init signature.
        tags: Set of tags identifying the MetaGraphDef within the SavedModel.
    
      Returns:
        A map from signature_key to its SignatureDef.
      """
      if tags is None:
        tags = {tag_constants.SERVING}
    
      loader = saved_model_loader.SavedModelLoader(saved_model_path)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/saved_model_utils.cc

          result;
      for (const FunctionDef& function_def : library.function()) {
        result[function_def.signature().name()] = &function_def;
      }
      return result;
    }
    
    Status PartiallyReviveSavedModelObjects(const MetaGraphDef& metagraph,
                                            ImmediateExecutionContext* context,
                                            const std::string& directory,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

      Returns:
        A SavedModel object with TF quantization applied.
    
      Raises:
        ValueError: when representative_dataset is not provided for non-QAT model.
        RuntimeError: When a MetaGraphDef could not be found associated with `tags`
          in the SavedModel.
      """
      logging.info(
          'Running static range quantization on model: %s', src_saved_model_path
      )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

    class SimpleSavedModelMLIRImportInput : public SavedModelMLIRImportInput {
     public:
      static absl::StatusOr<SimpleSavedModelMLIRImportInput> Create(
          const MLIRImportOptions& import_options,
          const MetaGraphDef* meta_graph_def, const GraphDebugInfo& debug_info) {
        DCHECK(meta_graph_def);
        GraphDef graph_def(meta_graph_def->graph_def());
        auto graph = std::make_unique<Graph>(OpRegistry::Global());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.h

    // - `tags` must include the set of tags used to identify one MetaGraphDef in
    //    the SavedModel.
    // - `graph` must be a graph newly allocated with TF_NewGraph().
    //
    // If successful, populates `graph` with the contents of the Graph and
    // `meta_graph_def` with the MetaGraphDef of the loaded model.
    TF_CAPI_EXPORT extern TF_Session* TF_LoadSessionFromSavedModel(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.cc

          tensorflow::LoadSavedModel(session_options->options, run_options_proto,
                                     export_dir, tag_set, &bundle);
      if (!status->status.ok()) return nullptr;
    
      // Create a TF_Graph from the MetaGraphDef. This is safe as long as Session
      // extends using GraphDefs. The Graph instance is different, but equivalent
      // to the one used to create the session.
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      TF_Session* session = TF_LoadSessionFromSavedModel(
          opt, run_options, saved_model_dir.c_str(), tags, 1, graph, metagraph, s);
      TF_DeleteBuffer(run_options);
      TF_DeleteSessionOptions(opt);
      tensorflow::MetaGraphDef metagraph_def;
      metagraph_def.ParseFromArray(metagraph->data, metagraph->length);
      TF_DeleteBuffer(metagraph);
    
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      CSession csession(session);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        )
    
        data_gen = self._create_data_generator(
            input_key='input', shape=input_placeholder.shape
        )
        with self.assertRaisesRegex(
            RuntimeError,
            "MetaGraphDef associated with tags {'serve'} could not be found",
        ):
          quantize_model.quantize(
              self._input_saved_model_path,
              self._output_saved_model_path,
              quantization_options,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. RELEASE.md

        including higher level `layers` module
    *   Added an easy way to add and dynamically load user-defined ops
    *   Built out a good suite of tests, things should break less!
    *   Added `MetaGraphDef` which makes it easier to save graphs with metadata
    *   Added assignments for "Deep Learning with TensorFlow" udacity course
    
    ## Bug Fixes and Other Changes
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top