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

Function LargeAllocationWarningBytes

tensorflow/core/framework/ev_allocator.cc:22–26  ·  view source on GitHub ↗

Cache first invocation to port::AvailableRam, as it can be expensive.

Source from the content-addressed store, hash-verified

20
21// Cache first invocation to port::AvailableRam, as it can be expensive.
22static int64_t LargeAllocationWarningBytes() {
23 static int64_t value = static_cast<int64>(port::AvailableRam() *
24 kLargeAllocationWarningThreshold);
25 return value;
26}
27
28static int64_t TotalAllocationWarningBytes() {
29 static int64_t value = static_cast<int64>(port::AvailableRam() *

Callers 2

AllocateRawMethod · 0.70
BatchAllocateRawMethod · 0.70

Calls 1

AvailableRamFunction · 0.50

Tested by

no test coverage detected