rectify control_depend and deprecated

pull/11943/head
buxue 4 years ago
parent 7baf313bcd
commit 25a4382921

@ -19,7 +19,7 @@ def deprecated(version, substitute):
"""deprecated warning
Args:
version (str): version that the operator or function will be deprecated.
version (str): version that the operator or function is deprecated.
substitute (str): the substitute name for deprecated operator or function.
"""

@ -41,8 +41,12 @@ ones_like = P.OnesLike()
shape = P.Shape()
rank = P.Rank()
reshape = P.Reshape()
# control_depend: represent dependency between two operators
control_depend = P.ControlDepend()
def control_depend(src, dst):
control_depend_op = P.ControlDepend()
return control_depend_op(src, dst)
merge = P.Merge()
geswitch = P.GeSwitch()
addn = P.AddN()

Loading…
Cancel
Save