Returns a lock to guard code for Session.run. See the comment for self._group_lock for more info.
(self)
| 5160 | return self._group_lock.group(_MUTATION_LOCK_GROUP) |
| 5161 | |
| 5162 | def _session_run_lock(self): |
| 5163 | """Returns a lock to guard code for Session.run. |
| 5164 | |
| 5165 | See the comment for self._group_lock for more info. |
| 5166 | """ |
| 5167 | return self._group_lock.group(_SESSION_RUN_LOCK_GROUP) |
| 5168 | |
| 5169 | |
| 5170 | # TODO(agarwal): currently device directives in an outer eager scope will not |