We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Device
1 parent f3ad473 commit 61bcfe8Copy full SHA for 61bcfe8
1 file changed
kernels/src/kernels/layer/device.py
@@ -150,9 +150,6 @@ def __post_init__(self):
150
if self.properties is not None and isinstance(self.properties, ROCMProperties):
151
if self.type != "rocm":
152
raise ValueError("ROCMProperties is only supported for 'rocm' devices.")
153
- if self.properties is not None and isinstance(self.properties, ROCMProperties):
154
- if self.type != "rocm":
155
- raise ValueError("ROCMProperties is only supported for 'rocm' devices.")
156
157
def __eq__(self, other):
158
if not isinstance(other, Device):
0 commit comments