提交 00b50faa 编写于 作者: Y yukavio

fix old op

上级 2f09a7dd
......@@ -22,7 +22,7 @@ from ..utils import deprecated
__all__ = ['one_hot', 'embedding']
@deprecated(since='2.0.0', update_to='paddle.functional.one_hot')
@deprecated(since='2.0.0', update_to='paddle.nn.functional.one_hot')
def one_hot(input, depth, allow_out_of_range=False):
"""
:alias_main: paddle.nn.functional.one_hot
......
......@@ -5832,7 +5832,7 @@ def smooth_l1(x, y, inside_weight=None, outside_weight=None, sigma=None):
return loss
@deprecated(since='2.0.0', update_to='paddle.functional.one_hot')
@deprecated(since='2.0.0', update_to='paddle.nn.functional.one_hot')
def one_hot(input, depth, allow_out_of_range=False):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册