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

Method TfAllocatorAdapter

tensorflow/stream_executor/tf_allocator_adapter.cc:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace stream_executor {
25
26TfAllocatorAdapter::TfAllocatorAdapter(tensorflow::Allocator *wrapped,
27 Stream *stream)
28 : DeviceMemoryAllocator(stream->parent()->platform()),
29 wrapped_(wrapped),
30 stream_(stream) {}
31
32TfAllocatorAdapter::TfAllocatorAdapter(tensorflow::Allocator *wrapped,
33 Platform *platform)

Callers

nothing calls this directly

Calls 2

platformMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected