Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ AlignTo
Function
AlignTo
tensorflow/lite/simple_memory_arena.cc:26–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
25
template <typename T>
26
T AlignTo(size_t alignment, T offset) {
27
return offset % alignment == 0 ? offset
28
: offset + (alignment - offset % alignment);
29
}
30
31
} // namespace
32
Callers
2
Allocate
Method · 0.85
Commit
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected