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