File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
pytorch_lightning/metrics/functional Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
44import warnings
55
66
7- # TODO: remove in 1.1.1
7+ # TODO: remove in 1.2
88def 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
2020def 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 )
You can’t perform that action at this time.
0 commit comments