Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for has_object_graph_def (0.18 sec)

  1. tensorflow/cc/saved_model/util.cc

    namespace tensorflow {
    namespace saved_model {
    
    std::string GetWriteVersion(const SavedModel& saved_model) {
      if (saved_model.meta_graphs_size() == 1 &&
          saved_model.meta_graphs()[0].has_object_graph_def()) {
        return "2";
      }
      return "1";
    }
    
    std::set<std::string> GetMapKeys(
        const ::google::protobuf::Map<std::string, ::tensorflow::TensorProto>& map) {
      std::set<std::string> keys;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 10 10:25:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      for (const auto& fn_name : fn_names) {
        TF_RETURN_IF_ERROR(importer.ConvertLibFunction(fn_name));
      }
      TF_RETURN_IF_ERROR(importer.ConvertDeferredFunctions());
    
      if (!saved_model->meta_graph_def().has_object_graph_def()) {
        return errors::InvalidArgument(
            "SavedModel does not have an object graph. Please use TF2.");
      }
      auto& object_graph = saved_model->meta_graph_def().object_graph_def();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top