| 169 | } |
| 170 | |
| 171 | TVector<std::remove_const_t<T>> Read(const TCudaStream& stream) const { |
| 172 | const ui64 size = Size(); |
| 173 | TVector<std::remove_const_t<T>> result; |
| 174 | result.resize(size); |
| 175 | NCudaLib::TMemoryCopier<Type, EPtrType::Host>::CopyMemoryAsync(Get(), result.data(), size, stream); |
| 176 | stream.Synchronize(); |
| 177 | return result; |
| 178 | } |
| 179 | |
| 180 | static TDeviceBuffer Nullptr() { |
| 181 | return TDeviceBuffer(); |
nothing calls this directly
no test coverage detected