Skip to content

Commit

Permalink
Update torch_geometric/transforms/random_rotate.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jinu Sunil <jinu.sunil@gmail.com>
  • Loading branch information
rusty1s and wsad1 authored Oct 15, 2022
1 parent 8aa67fb commit 2465288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/transforms/random_rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, degrees: Union[Tuple[float, float], float], axis: int=0):
self.degrees = degrees
self.axis = axis

def __call__(self, data) -> Data:
def __call__(self, data: Data) -> Data:
degree = math.pi * random.uniform(*self.degrees) / 180.0
sin, cos = math.sin(degree), math.cos(degree)

Expand Down

0 comments on commit 2465288

Please sign in to comment.