diff --git a/paddle/pten/common/device.cc b/paddle/pten/common/device.cc index 9583b521d9123975ceb3526caf08096f631851de..55130067ae200ca0aeb92dc6e0ac591328ad9557 100644 --- a/paddle/pten/common/device.cc +++ b/paddle/pten/common/device.cc @@ -24,7 +24,7 @@ const char* DeviceTypeStr(DeviceType type) { case DeviceType::kUndef: return "kUndef"; case DeviceType::kHost: - return "kUndef"; + return "kHost"; case DeviceType::kXpu: return "kXpu"; case DeviceType::kCuda: