Skip to content

Commit

Permalink
Deleted an unnecessary if-clause in pos for better code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
LScheib committed Dec 6, 2023
1 parent 22338f0 commit 0b9c622
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions heat/core/arithmetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2714,8 +2714,6 @@ def pos(a: DNDarray, out: Optional[DNDarray] = None) -> DNDarray:
sanitation.sanitize_in(a)

def torch_pos(torch_tensor, out=None):
if not torch.is_tensor(torch_tensor):
raise TypeError(f"Input is not a torch tensor but {type(torch_tensor)}")
return out.copy_(torch_tensor)

if out is not None:
Expand Down

0 comments on commit 0b9c622

Please sign in to comment.