Skip to content

Commit 76a5b09

Browse files
committed
add annotation
1 parent 90e6af5 commit 76a5b09

File tree

1 file changed

+3
-0
lines changed
  • paddle/fluid/distributed/fleet_executor

1 file changed

+3
-0
lines changed

paddle/fluid/distributed/fleet_executor/carrier.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class Carrier final {
7575

7676
bool IsInit() const;
7777

78+
// NOTE: This mutex will be used in interceptor's RunOps function.
79+
// This mutex is used for avoiding forward ops and backward ops run
80+
// simultaneously, which will lead to a random hang for some sync ops.
7881
std::mutex run;
7982

8083
DISABLE_COPY_AND_ASSIGN(Carrier);

0 commit comments

Comments
 (0)