Skip to content

Commit 8aa67fb

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

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
@@ -22,7 +22,7 @@ class RandomRotate(BaseTransform):
2222
\mathrm{degrees}]`.
2323
axis (int, optional): The rotation axis. (default: :obj:`0`)
2424
"""
25-
def __init__(self, degrees: Union[Tuple[float, float], float], axis=0):
25+
def __init__(self, degrees: Union[Tuple[float, float], float], axis: int=0):
2626
if isinstance(degrees, numbers.Number):
2727
degrees = (-abs(degrees), abs(degrees))
2828
assert isinstance(degrees, (tuple, list)) and len(degrees) == 2

0 commit comments

Comments
 (0)