Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for graph_def (0.06 sec)

  1. tensorflow/c/c_api_test.cc

      EXPECT_TRUE(IsNeg(node_def, "add"));
    
      // Serialize to GraphDef.
      GraphDef graph_def2;
      ASSERT_TRUE(GetGraphDef(graph, &graph_def2));
    
      // Compare with first GraphDef + added NodeDef.
      NodeDef* added_node = graph_def.add_node();
      *added_node = node_def;
      EXPECT_EQ(graph_def.DebugString(), graph_def2.DebugString());
    
      // Look up some nodes by name.
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.h

    // taking in a serialized tensorflow::GraphDef, it takes in a *pointer* to the
    // C++ *in memory representation* of the GraphDef, stored in `graph_def->data`
    TF_CAPI_EXPORT extern TF_ImportGraphDefResults*
    TF_GraphImportGraphDefWithResultsNoSerialization(
        TF_Graph* graph, const TF_Buffer* graph_def,
        const TF_ImportGraphDefOptions* options, TF_Status* status);
    
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

    TF_ImportGraphDefResults* TF_GraphImportGraphDefWithResults(
        TF_Graph* graph, const TF_Buffer* graph_def,
        const TF_ImportGraphDefOptions* options, TF_Status* status) {
      GraphDef def;
      if (!tensorflow::ParseProtoUnlimited(&def, graph_def->data,
                                           graph_def->length)) {
        status->status = InvalidArgument("Invalid GraphDef");
        return nullptr;
      }
      auto results = new TF_ImportGraphDefResults();
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

        const char* text_proto,
        std::function<void(FunctionDef*)>* mutate_proto_func, TF_Status* status) {
      tensorflow::GraphDef gdef;
      if (!tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &gdef)) {
        status->status = tensorflow::errors::Internal(
            "Invalid text proto for GraphDef: ", text_proto);
        return {};
      }
      const auto& fdef_lib = gdef.library();
      if (fdef_lib.gradient_size() > 0) {
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 03:53:25 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  5. SECURITY.md

    should be used with caution when working with untrusted models.
    
    ### Saved graphs and checkpoints
    
    When loading untrusted serialized computation graphs (in form of a `GraphDef`,
    `SavedModel`, or equivalent on-disk format), the set of computation primitives
    available to TensorFlow is powerful enough that you should assume that the
    TensorFlow process effectively executes arbitrary code.
    
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Wed Oct 16 16:10:43 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. RELEASE.md

    *   The Python API will now properly set the `list` member of `AttrValue` in
        constructed `GraphDef` messages for empty lists. The serialization of some
        graphs will change, but the change is both forwards and backwards
        compatible. It will break tests that compare a generated `GraphDef` to a
        golden serialized `GraphDef` (which is discouraged).
    
    ## Thanks to our Contributors
    
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 20:54:38 UTC 2025
    - 740K bytes
    - Viewed (2)
Back to top