- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TFE_OpSetDevice (0.07 sec)
-
tensorflow/c/eager/c_api_test.cc
TFE_Op* matmul = MatMulOp(ctx, hcpu, hgpu); if (cpu_op) { string cpu_device_name; ASSERT_TRUE(GetDeviceName(ctx, &cpu_device_name, "CPU")); TFE_OpSetDevice(matmul, cpu_device_name.c_str(), status.get()); } else { TFE_OpSetDevice(matmul, gpu_device_name.c_str(), status.get()); } ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get()); TFE_TensorHandle* retvals[1];
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0)