Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ RoundedBytes
Function
RoundedBytes
tensorflow/core/common_runtime/gpu_memory_planner.h:21–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
const SizeMap kSmallSizeMap;
20
21
inline size_t RoundedBytes(size_t bytes, size_t alignment) {
22
return alignment * ((bytes + alignment - 1) / alignment);
23
}
24
}
25
26
class GPUAllocBlock {
Callers
9
BFCAllocator
Method · 0.70
Extend
Method · 0.70
AllocateRawInternal
Method · 0.70
Init
Method · 0.70
SmallBin
Method · 0.70
Buffer
Method · 0.70
TotalMem
Method · 0.70
FreeEmptyMemory
Method · 0.50
TestForceAllowGrowth
Method · 0.50
Calls
no outgoing calls
Tested by
1
TestForceAllowGrowth
Method · 0.40