- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for EXPECT_TRUE (0.05 sec)
-
tensorflow/c/eager/c_api_experimental_test.cc
EXPECT_TRUE(TFE_CancellationManagerDeregisterCallback(c_mgr, token1)); EXPECT_TRUE(TFE_CancellationManagerTryDeregisterCallback(c_mgr, token3)); TFE_CancellationManagerStartCancel(c_mgr); EXPECT_TRUE(TFE_CancellationManagerIsCancelled(c_mgr)); EXPECT_TRUE(callback2_invoked); TFE_DeleteCancellationManager(c_mgr); } TEST(CAPI, ExecutorContextDestructionOrder) { TF_Status* status = TF_NewStatus();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
const string malformed_text_proto(R"(cluster { job { name: "worker")"); TF_Buffer* null_result = TFE_GetServerDef(malformed_text_proto.c_str(), status); EXPECT_NE(TF_GetCode(status), TF_OK); EXPECT_TRUE(absl::StrContains(TF_Message(status), "Invalid text proto for ServerDef")); EXPECT_EQ(null_result, nullptr); // Cleanup TF_DeleteBuffer(result); TF_DeleteStatus(status); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/c/eager/custom_device_test.cc
matmul.reset(MatMulOp(context.get(), hcustom0.get(), hcpu.get())); num_retvals = 1; executed = false; TFE_Execute(matmul.get(), &retval, &num_retvals, status.get()); EXPECT_TRUE(executed); ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); TFE_DeleteTensorHandle(retval); // Explicit placement still forces the op onto the requested device
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 27 23:39:24 UTC 2020 - 18.4K bytes - Viewed (0)