MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / group

Method group

tensorflow/python/util/lock_util.py:74–84  ·  view source on GitHub ↗

Enter a context where the lock is with group `group_id`. Args: group_id: The group for which to acquire and release the lock. Returns: A context manager which will acquire the lock for `group_id`.

(self, group_id)

Source from the content-addressed store, hash-verified

72 self._group_member_counts = [0] * self._num_groups
73
74 def group(self, group_id):
75 """Enter a context where the lock is with group `group_id`.
76
77 Args:
78 group_id: The group for which to acquire and release the lock.
79
80 Returns:
81 A context manager which will acquire the lock for `group_id`.
82 """
83 self._validate_group_id(group_id)
84 return self._Context(self, group_id)
85
86 def acquire(self, group_id):
87 """Acquire the group lock for a specific group `group_id`."""

Callers 15

get_ndk_api_levelFunction · 0.45
is_cuda_compatibleFunction · 0.45
trainFunction · 0.45
evalFunction · 0.45
_create_optimizerMethod · 0.45
trainFunction · 0.45
evalFunction · 0.45
trainFunction · 0.45
evalFunction · 0.45
trainFunction · 0.45

Calls 1

_validate_group_idMethod · 0.95

Tested by 15

check_fileFunction · 0.36
_ReplaceCapsWithDashFunction · 0.36
_ReplaceDashWithCapsFunction · 0.36
testExtendWithGroupByMethod · 0.36
benchmarkSVDOpMethod · 0.36
benchmarkCholeskyOpMethod · 0.36
_BenchmarkGradMethod · 0.36
benchmarkQROpMethod · 0.36