Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for DeviceNameFromDlContext (0.23 seconds)

  1. tensorflow/c/eager/dlpack.cc

        status->status = tensorflow::errors::InvalidArgument(
            "Unsupported Device Type for dlpack");
      }
    
      return ctx;
    }
    
    // Converts DLDevice to TF device name.
    absl::optional<std::string> DeviceNameFromDlContext(const DLDevice& ctx,
                                                        TF_Status* status) {
      switch (ctx.device_type) {
        case DLDeviceType::kDLCPU:
          return "CPU:0";
        case DLDeviceType::kDLCUDA:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Mar 13 23:41:52 GMT 2025
    - 13K bytes
    - Click Count (0)
Back to Top