- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ASSERT_EQ (0.15 sec)
-
tensorflow/c/c_api_test.cc
TF_Operation* a = Placeholder(graph, s, "A"); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_Operation* b = Placeholder(graph, s, "B"); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_Operation* two = ScalarConst(2, graph, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_Operation* plus2 = Add(a, two, graph, s, "plus2"); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(device_name, nullptr); ASSERT_EQ("Invalid handle", string(TF_Message(status.get()))); TF_SetStatus(status.get(), TF_OK, ""); int num_dims = TFE_TensorHandleNumDims(h, status.get()); ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get())); ASSERT_EQ(num_dims, -1); ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
ASSERT_EQ(1, grads.size()); ASSERT_EQ(func_name_, grads[0].first); ASSERT_EQ("MyGrad", grads[0].second); // These calls must be noops TF_GraphCopyFunction(host_graph_, func_, grad_func, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); TF_GraphCopyFunction(host_graph_, func_, nullptr, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Delete the gradient func.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)