Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetGradDefs (0.14 sec)

  1. tensorflow/c/c_api_function_test.cc

      ASSERT_EQ(0, GetGradDefs(gdef).size());
    
      // Make grad_func a gradient of func
      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 linked
      gdef.Clear();
      GetGraphDef(host_graph_, &gdef);
      std::vector<std::pair<string, string>> grads = GetGradDefs(gdef);
      ASSERT_EQ(1, grads.size());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
Back to top