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

Function DeviceAllocatorAttribute

tensorflow/core/framework/allocator_test.cc:206–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204namespace {
205
206AllocatorAttributes DeviceAllocatorAttribute() {
207 AllocatorAttributes attr;
208 attr.value |= (0x1 << 24);
209 return attr;
210}
211
212bool HasDeviceAllocatorAttribute(const AllocatorAttributes& attr) {
213 return attr.value & (0x1 << 24);

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected