Skip to content

Commit 2465288

Browse files
rusty1swsad1
andauthored
Update torch_geometric/transforms/random_rotate.py
Co-authored-by: Jinu Sunil <[email protected]>
1 parent 8aa67fb commit 2465288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_geometric/transforms/random_rotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, degrees: Union[Tuple[float, float], float], axis: int=0):
2929
self.degrees = degrees
3030
self.axis = axis
3131

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

0 commit comments

Comments
 (0)