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

Method ScopedDeviceMemory

tensorflow/stream_executor/stream_executor_pimpl.h:863–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861
862template <typename ElemT>
863ScopedDeviceMemory<ElemT>::ScopedDeviceMemory(StreamExecutor *parent,
864 DeviceMemoryBase value)
865 : wrapped_(value),
866 device_ordinal_(parent->device_ordinal()),
867 allocator_(parent->GetAllocator()) {}
868
869template <typename ElemT>
870ScopedDeviceMemory<ElemT>::ScopedDeviceMemory(

Callers

nothing calls this directly

Calls 5

FreeFunction · 0.50
device_ordinalMethod · 0.45
GetAllocatorMethod · 0.45
sizeMethod · 0.45
SynchronousMemcpyMethod · 0.45

Tested by

no test coverage detected