- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestVariable (0.06 sec)
-
tensorflow/c/eager/c_api_cluster_test.cc
const char dev1_name[] = "/job:localhost/replica:0/task:1/device:CPU:0"; TFE_TensorHandle* var_handle0 = TestVariable(ctx, 1.0, dev0_name); EXPECT_NE(var_handle0, nullptr); TFE_TensorHandle* var_handle1 = TestVariable(ctx, 2.0, dev1_name); EXPECT_NE(var_handle1, nullptr); TFE_TensorHandle* value_handle = nullptr; ReadVariable(ctx, var_handle1, &value_handle);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_distributed_test.cc
const char task2_name[] = "/job:localhost/replica:0/task:2/device:CPU:0"; // Create one variable per task. TFE_TensorHandle* h0 = TestVariable(ctx, 1.0, task1_name); TFE_TensorHandle* h1 = TestVariable(ctx, 2.0, task2_name); TFE_TensorHandle* h2 = TestVariable(ctx, 3.0, task0_name); // Add a sync point to make sure that variables have been initialized // before the function execution starts.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 23.4K bytes - Viewed (0)