Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetGraphDef (0.22 sec)

  1. tensorflow/c/c_test_util.h

    bool IsScalarConst(const tensorflow::NodeDef& node_def, int v);
    
    bool IsAddN(const tensorflow::NodeDef& node_def, int n);
    
    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input);
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def);
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def);
    
    bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def);
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function_test.cc

      TF_GraphCopyFunction(host_graph_, func_, grad_func, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      // Verify that function and its grad are in host graph's GraphDef
      GraphDef gdef;
      GetGraphDef(host_graph_, &gdef);
      std::vector<string> func_names = GetFuncNames(gdef);
      ASSERT_EQ(2, func_names.size());
      ASSERT_EQ(func_name_, func_names[0]);
      ASSERT_EQ("MyGrad", func_names[1]);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  3. tensorflow/c/c_api_test.cc

        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
        // Compare that the graphs match.
        GraphDef expected_gdef;
        GraphDef gdef;
        EXPECT_TRUE(GetGraphDef(expected_graph_, &expected_gdef));
        EXPECT_TRUE(GetGraphDef(graph_, &gdef));
        TF_EXPECT_GRAPH_EQ(expected_gdef, gdef);
    
        // Compare that the output of the gradients of both graphs match.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  4. tensorflow/c/c_test_util.cc

    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input) {
      return node_def.op() == "Neg" && node_def.name() == "neg" &&
             node_def.input_size() == 1 && node_def.input(0) == input;
    }
    
    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;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
Back to top