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

Function SmallAlloc

tensorflow/core/common_runtime/memory_planner.h:27–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25constexpr size_t _32KB_OFFSET = 15;
26
27inline bool SmallAlloc(size_t s) {
28 return s <= _32KB;
29}
30
31inline size_t Index(size_t s, size_t alignment, size_t alignment_offset) {
32 if (SmallAlloc(s)) {

Callers 5

AllocateRawMethod · 0.85
TrackAllocateMethod · 0.85
TrackDeallocateMethod · 0.85
IndexFunction · 0.85
AllocateRawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected