File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2626import paddle
2727from paddle import _C_ops
2828from paddle .utils import deprecated
29- from paddle .utils .decorator_utils import ParamAliasDecorator , SizeArgsDecorator
29+ from paddle .utils .decorator_utils import ParamAliasDecorator , view_decorator
3030from paddle .utils .inplace_utils import inplace_apis_in_dygraph_only
3131
3232from ..base .data_feeder import (
@@ -1278,7 +1278,7 @@ def fill_constant(
12781278 return out
12791279
12801280
1281- @SizeArgsDecorator ()
1281+ @view_decorator ()
12821282def ones (
12831283 shape : ShapeLike ,
12841284 dtype : DTypeLike | None = None ,
@@ -1405,7 +1405,7 @@ def ones_like(
14051405 )
14061406
14071407
1408- @SizeArgsDecorator ()
1408+ @view_decorator ()
14091409def zeros (
14101410 shape : ShapeLike ,
14111411 dtype : DTypeLike | None = None ,
@@ -2825,7 +2825,7 @@ def diag(
28252825 return out
28262826
28272827
2828- @SizeArgsDecorator ()
2828+ @view_decorator ()
28292829def empty (
28302830 shape : ShapeLike ,
28312831 dtype : DTypeLike | None = None ,
You can’t perform that action at this time.
0 commit comments