Skip to content

Commit 61bcfe8

Browse files
authored
kernels: dedup condition in Device (#571)
1 parent f3ad473 commit 61bcfe8

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

kernels/src/kernels/layer/device.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ def __post_init__(self):
150150
if self.properties is not None and isinstance(self.properties, ROCMProperties):
151151
if self.type != "rocm":
152152
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.")
156153

157154
def __eq__(self, other):
158155
if not isinstance(other, Device):

0 commit comments

Comments
 (0)