| 32 | namespace xla { |
| 33 | |
| 34 | ShapedBuffer::ShapedBuffer(Shape on_host_shape, Shape on_device_shape, |
| 35 | const se::Platform* platform, int device_ordinal) |
| 36 | : on_host_shape_(std::move(on_host_shape)), |
| 37 | on_device_shape_(std::move(on_device_shape)), |
| 38 | platform_(platform), |
| 39 | device_ordinal_(device_ordinal), |
| 40 | buffers_(&on_device_shape_) {} |
| 41 | |
| 42 | ShapedBuffer::ShapedBuffer(ShapedBuffer&& s) |
| 43 | : on_host_shape_(std::move(s.on_host_shape_)), |
nothing calls this directly
no test coverage detected