rectify control_depend and deprecated

This commit is contained in:
buxue 2021-02-01 19:03:59 +08:00
parent 7baf313bcd
commit 25a4382921
2 changed files with 6 additions and 2 deletions

View File

@ -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.
"""

View File

@ -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()