Skip to content

Commit 6fa8ef8

Browse files
committed
remove empty guard [skip ci]
1 parent 4138c05 commit 6fa8ef8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

array_api_compat/torch/_aliases.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,7 @@ def arange(start: float,
616616
dtype = torch.int64
617617
else:
618618
dtype = torch.float32
619-
try:
620-
return torch.empty(0, dtype=dtype, device=device, **kwargs)
621-
except NotImplementedError:
622-
return torch.empty(0, device=device, **kwargs).to(dtype)
619+
return torch.empty(0, device=device, **kwargs).to(dtype)
623620
try:
624621
return torch.arange(start, stop, step, dtype=dtype, device=device, **kwargs)
625622
except NotImplementedError:

0 commit comments

Comments
 (0)