Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TFE_OpSetDevice (0.07 seconds)

  1. 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];
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 94.6K bytes
    - Click Count (0)
Back to Top