Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ Release
Method
Release
tensorflow/compiler/xla/python/semaphore.cc:42–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
40
}
41
42
void Semaphore::Release(int64 amount) {
43
CHECK_GE(amount, 0);
44
absl::MutexLock lock(&mu_);
45
value_ += amount;
46
}
47
48
Semaphore::ScopedReservation::~ScopedReservation() {
49
if (semaphore_) {
Callers
5
MakeTuple
Method · 0.45
SharedDeviceBuffer
Method · 0.45
~ScopedReservation
Method · 0.45
TEST
Function · 0.45
ExecuteOnLocalDevices
Method · 0.45
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.36