Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for clear (0.12 sec)

  1. tensorflow/c/c_api_function_test.cc

      // 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());
      ASSERT_EQ("FooFunc", grads[0].first);
      ASSERT_EQ("MyGrad", grads[0].second);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  2. tensorflow/c/eager/c_api_test.cc

      TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(),
                                status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (bool clear_cache : {true, false, true}) {
        if (clear_cache) {
          TFE_ContextClearCaches(ctx);
        }
        TFE_TensorHandle* m = TestMatrixTensorHandle(ctx);
        TFE_TensorHandle* retval[1] = {nullptr};
        int num_retvals = 1;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(0, num_dims);
      TF_GraphGetTensorShape(graph, three_out_0, returned_dims, num_dims, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Clean up
      TF_DeleteGraph(graph);
      TF_DeleteStatus(s);
    }
    
    TEST(CAPI, Graph) {
      TF_Status* s = TF_NewStatus();
      TF_Graph* graph = TF_NewGraph();
    
      // Make a placeholder operation.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top