Browse Source

!11879 modify depend interface description

From: @huangbingjian
Reviewed-by: @zh_qh,@ginfung
Signed-off-by: @zh_qh
tags/v1.1.1
mindspore-ci-bot Gitee 5 years ago
parent
commit
b46c541f0b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/ops/operations/other_ops.py

+ 2
- 1
mindspore/ops/operations/other_ops.py View File

@@ -423,7 +423,8 @@ class Depend(Primitive):

Previously, the ControlDepend operator was used to control the execution order.
Since the ControlDepend operator is deprecated from version 1.1, it is recommended
to use the Depend operator instead. The replacement method is as follows:
to use the Depend operator instead. The replacement method is as follows::

a = A(x) ---> a = A(x)
b = B(y) ---> y = Depend(y, a)
ControlDepend(a, b) ---> b = B(y)


Loading…
Cancel
Save