Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for TFE_OpGetDevice (0.14 seconds)

  1. tensorflow/c/eager/custom_device_testutil.cc

    void LoggingDeviceExecute(const TFE_Op* original_op, int* num_outputs,
                              TFE_TensorHandle** outputs, TF_Status* s,
                              void* device_info) {
      const char* requested_placement = TFE_OpGetDevice(original_op, s);
      if (TF_GetCode(s) != TF_OK) return;
    
      LoggingDevice* dev = reinterpret_cast<LoggingDevice*>(device_info);
      if (dev->strict_scope_placement && *requested_placement == '\0') {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Dec 20 23:30:21 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  2. tensorflow/c/eager/c_api_test.cc

        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        const char* device_name = TFE_OpGetDevice(matmul, status);
        ASSERT_TRUE(strstr(device_name, "GPU:0") != nullptr);
    
        TFE_OpSetDevice(matmul, "CPU:0", status);
        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        device_name = TFE_OpGetDevice(matmul, status);
        ASSERT_TRUE(strstr(device_name, "CPU:0") != nullptr);
      }
    
    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)
  3. tensorflow/c/eager/c_api.cc

    }
    
    void TFE_OpSetDevice(TFE_Op* op, const char* device_name, TF_Status* status) {
      status->status = tensorflow::unwrap(op)->SetDeviceName(device_name);
    }
    
    const char* TFE_OpGetDevice(const TFE_Op* op, TF_Status* status) {
      return tensorflow::unwrap(op)->DeviceName().c_str();
    }
    
    void TFE_OpAddInput(TFE_Op* op, TFE_TensorHandle* input, TF_Status* status) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Nov 07 05:55:21 GMT 2025
    - 43.9K bytes
    - Click Count (0)
Back to Top