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

Method RoundUp

tensorflow/core/common_runtime/pool_allocator.h:144–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142class Pow2Rounder : public RoundUpInterface {
143 public:
144 size_t RoundUp(size_t num_bytes) override {
145 return 1uLL << Log2Ceiling64(num_bytes);
146 }
147};
148
149class BasicCPUAllocator : public SubAllocator {

Callers

nothing calls this directly

Calls 1

Log2Ceiling64Function · 0.85

Tested by

no test coverage detected