Skip to content

Commit

Permalink
Updated DL device name for MAIA
Browse files Browse the repository at this point in the history
  • Loading branch information
kyule7 committed Feb 22, 2024
1 parent 130fed8 commit 58c51e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/core/dlpack/dlpack_converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ OrtDevice GetOrtDevice(const DLDevice& device) {
case DLDeviceType::kDLCUDA:
case DLDeviceType::kDLROCM:
return OrtDevice(OrtDevice::GPU, OrtDevice::MemType::DEFAULT, static_cast<OrtDevice::DeviceId>(device.device_id));
case DLDeviceType::kDLExtDev:
case DLDeviceType::kDLMAIA:
return OrtDevice(OrtDevice::NPU, OrtDevice::MemType::DEFAULT, static_cast<OrtDevice::DeviceId>(device.device_id));
default:
ORT_THROW("Unsupported device type");
Expand Down Expand Up @@ -202,7 +202,7 @@ DLDevice GetDlpackDevice(const OrtValue& ort_value, const int64_t& device_id) {
break;
case OrtDevice::FPGA:
case OrtDevice::NPU:
device.device_type = DLDeviceType::kDLExtDev;
device.device_type = DLDeviceType::kDLMAIA;
default:
ORT_THROW("Cannot pack tensors on this device.");
}
Expand Down

0 comments on commit 58c51e4

Please sign in to comment.