Skip to content

Commit eb74af1

Browse files
committed
Set temporary opencl device to PrivateUse1 dispatch key
1 parent 4cdfced commit eb74af1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c10/core/TensorOptions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,10 @@ inline DispatchKey computeDispatchKey(
649649
}
650650
return DispatchKey::XPU;
651651
}
652+
case DeviceType::OPENCL:
653+
return DispatchKey::PrivateUse1;
652654
case DeviceType::MKLDNN:
653655
case DeviceType::OPENGL:
654-
case DeviceType::OPENCL:
655656
case DeviceType::IDEEP:
656657
TORCH_INTERNAL_ASSERT(
657658
0,

0 commit comments

Comments
 (0)