Skip to content

Commit

Permalink
remove custom __repr__ from prototype features (#5916)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Apr 28, 2022
1 parent 734ee25 commit 7f55738
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions torchvision/prototype/features/_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,3 @@ def __torch_function__(
return cls.new_like(args[0], output, dtype=output.dtype, device=output.device)
else:
return output

def __repr__(self) -> str:
return cast(str, torch.Tensor.__repr__(self)).replace("tensor", type(self).__name__)

0 comments on commit 7f55738

Please sign in to comment.