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

Function TEST

tensorflow/core/framework/allocator_test.cc:49–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49TEST(AllocatorAttributesTest, AllCombos) {
50 for (bool on_host : {false, true}) {
51 for (bool nic_compatible : {false, true}) {
52 for (bool gpu_compatible : {false, true}) {
53 AllocatorAttributes aa;
54 aa.set_on_host(on_host);
55 aa.set_nic_compatible(nic_compatible);
56 aa.set_gpu_compatible(gpu_compatible);
57 EXPECT_EQ(on_host, aa.on_host());
58 EXPECT_EQ(nic_compatible, aa.nic_compatible());
59 EXPECT_EQ(gpu_compatible, aa.gpu_compatible());
60 }
61 }
62 }
63}
64
65TEST(AllocatorAttributesTest, IsEqualOrLessRestrictiveThan) {
66 AllocatorAttributes a, b;

Callers

nothing calls this directly

Calls 15

EXPECT_DEATHFunction · 0.85
EnableCPUAllocatorStatsFunction · 0.85
cpu_allocatorFunction · 0.85
sortFunction · 0.85
DeviceAllocatorAttributeFunction · 0.85
AllocatorAttributesClass · 0.85
set_on_hostMethod · 0.80
set_nic_compatibleMethod · 0.80
set_gpu_compatibleMethod · 0.80
nic_compatibleMethod · 0.80
gpu_compatibleMethod · 0.80

Tested by

no test coverage detected