MCPcopy 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
42void Semaphore::Release(int64 amount) {
43 CHECK_GE(amount, 0);
44 absl::MutexLock lock(&mu_);
45 value_ += amount;
46}
47
48Semaphore::ScopedReservation::~ScopedReservation() {
49 if (semaphore_) {

Callers 5

MakeTupleMethod · 0.45
SharedDeviceBufferMethod · 0.45
~ScopedReservationMethod · 0.45
TESTFunction · 0.45
ExecuteOnLocalDevicesMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36