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

Function TEST

tensorflow/core/common_runtime/tensorpool_allocator_test.cc:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27TEST(TensorPoolAllocatorTest, SmallAllocationWithAlignment32B) {
28 TensorPoolAllocator allocator;
29 void* p = allocator.AllocateRaw(32, 100);
30 EXPECT_TRUE(p != nullptr);
31 allocator.DeallocateRaw(p);
32}
33
34TEST(TensorPoolAllocatorTest, SmallAllocationWithAlignment8B) {
35 TensorPoolAllocator allocator;

Callers

nothing calls this directly

Calls 8

DefaultFunction · 0.85
sleepFunction · 0.85
AllocateRawMethod · 0.45
DeallocateRawMethod · 0.45
emplace_backMethod · 0.45
joinMethod · 0.45
SetThreadPoolMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected