Skip to content

Commit 51fbf03

Browse files
committed
suggestions
1 parent 1a9fa26 commit 51fbf03

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from pytorch_lightning.metrics.utils import to_categorical as new_to_categorical
2-
from pytorch_lightning.metrics.utils import to_onehot as new_to_onehot
1+
from pytorch_lightning.metrics.utils import to_categorical as __to_categorical
2+
from pytorch_lightning.metrics.utils import to_onehot as __to_onehot
33

44
import warnings
55

66

7-
# TODO: remove in 1.1.1
7+
# TODO: remove in 1.2
88
def to_onehot(*args, **kwargs):
99
warnings.warn(
1010
(
@@ -13,10 +13,10 @@ def to_onehot(*args, **kwargs):
1313
),
1414
DeprecationWarning,
1515
)
16-
return new_to_onehot(*args, **kwargs)
16+
return __to_onehot(*args, **kwargs)
1717

1818

19-
# TODO: remove in 1.1.1
19+
# TODO: remove in 1.2
2020
def to_categorical(*args, **kwargs):
2121
warnings.warn(
2222
(
@@ -25,4 +25,4 @@ def to_categorical(*args, **kwargs):
2525
),
2626
DeprecationWarning,
2727
)
28-
return new_to_categorical(*args, **kwargs)
28+
return __to_categorical(*args, **kwargs)

0 commit comments

Comments
 (0)