diff --git a/paddle/phi/api/yaml/op_compat.yaml b/paddle/phi/api/yaml/op_compat.yaml index 51209301bce6e61969a0b1e0f3efba6a7799526b..3f4cfbdc25b714e87977ecd3a5e14d070abe93f4 100644 --- a/paddle/phi/api/yaml/op_compat.yaml +++ b/paddle/phi/api/yaml/op_compat.yaml @@ -594,6 +594,14 @@ outputs : out : Out +- op : flatten (flatten_contiguous_range) + inputs : + x : X + outputs : + {out : Out, xshape : XShape} + attrs : + {start_axis : start_axis, stop_axis : stop_axis} + - op : flip inputs : x : X @@ -648,6 +656,14 @@ extra : attrs : [bool use_mkldnn = false] +- op : full_like (fill_any_like) + inputs : + x : X + outputs : + out : Out + attrs : + {value: value, dtype: dtype} + - op : fused_conv2d extra : attrs : [bool use_cudnn = false, float fuse_alpha = 0.0f, float fuse_beta = 0.0f, float Scale_in = 1.0f, diff --git a/python/paddle/incubate/autograd/primitives.py b/python/paddle/incubate/autograd/primitives.py index 25c87fb720944d1053b0ab578312e31fa48e925f..240ea6e28a63b1daf77e24197ecab3fadea9216b 100644 --- a/python/paddle/incubate/autograd/primitives.py +++ b/python/paddle/incubate/autograd/primitives.py @@ -59,6 +59,7 @@ from paddle.tensor import zeros # noqa: F401 from paddle.tensor.creation import assign # noqa: F401 from paddle.tensor.manipulation import cast # noqa: F401 +""" math_op = [ 'add', 'subtract', @@ -116,11 +117,4 @@ others = [ 'reshape', 'full', ] - -__all__ = [] -__all__.extend(math_op) -__all__.extend(trigonometric_op) -__all__.extend(sub_prim) -__all__.extend(others) - -__all__.sort() +"""