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

Method ScopedShapedBuffer

tensorflow/compiler/xla/service/shaped_buffer.cc:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119ScopedShapedBuffer::ScopedShapedBuffer(Shape on_host_shape,
120 Shape on_device_shape,
121 se::DeviceMemoryAllocator* allocator,
122 int device_ordinal)
123 : ShapedBuffer(std::move(on_host_shape), std::move(on_device_shape),
124 allocator->platform(), device_ordinal),
125 allocator_(allocator) {}
126
127ScopedShapedBuffer::ScopedShapedBuffer(ShapedBuffer shaped_buffer,
128 se::DeviceMemoryAllocator* allocator)

Callers

nothing calls this directly

Calls 1

platformMethod · 0.45

Tested by

no test coverage detected