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

Function aligned_free

tensorflow/compiler/xla/cpu_function_runtime.cc:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void aligned_free(void* aligned_memory) {
45#if defined(_WIN32)
46 _aligned_free(aligned_memory);
47#else
48 free(aligned_memory);
49#endif
50}
51
52size_t align_to(size_t n, size_t align) {
53 return (((n - 1) / align) + 1) * align;

Callers 2

TESTFunction · 0.85
FreeContiguousFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68