Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_GraphToGraphDef (0.31 sec)

  1. tensorflow/c/while_loop_test.cc

        DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        params_->cond_output = {less_than, 0};
      }
    
      string GraphDebugString() const {
        TF_Buffer* buf = TF_NewBuffer();
        TF_GraphToGraphDef(graph_, buf, s_);
        DCHECK_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        GraphDef def;
        bool success = def.ParseFromArray(buf->data, buf->length);
        DCHECK(success);
        TF_DeleteBuffer(buf);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_test_util.cc

    }
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def) {
      TF_Status* s = TF_NewStatus();
      TF_Buffer* buffer = TF_NewBuffer();
      TF_GraphToGraphDef(graph, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      if (ret) ret = graph_def->ParseFromArray(buffer->data, buffer->length);
      TF_DeleteBuffer(buffer);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      Neg(oper, graph, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      ASSERT_TRUE(TF_GraphOperationByName(graph, "neg") != nullptr);
    
      // Export to a GraphDef.
      TF_Buffer* graph_def = TF_NewBuffer();
      TF_GraphToGraphDef(graph, graph_def, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Import it, with a prefix, in a fresh graph.
      TF_DeleteGraph(graph);
      graph = TF_NewGraph();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.h

    // `output_graph_def`'s underlying buffer will be freed when TF_DeleteBuffer()
    // is called.
    //
    // May fail on very large graphs in the future.
    TF_CAPI_EXPORT extern void TF_GraphToGraphDef(TF_Graph* graph,
                                                  TF_Buffer* output_graph_def,
                                                  TF_Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

        // to still check.
        if (node != nullptr) return ToOperation(node);
        *pos += 1;
      }
    
      // No more nodes.
      return nullptr;
    }
    
    void TF_GraphToGraphDef(TF_Graph* graph, TF_Buffer* output_graph_def,
                            TF_Status* status) {
      GraphDef def;
      {
        mutex_lock l(graph->mu);
        graph->graph.ToGraphDef(&def);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top