Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_GraphToGraphDef (0.15 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_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)
  3. 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