MCPcopy Create free account
hub / github.com/catboost/catboost / Read

Method Read

catboost/cuda/cuda_lib/cuda_kernel_buffer.h:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 6

CopyMemoryAsyncFunction · 0.85
SizeFunction · 0.50
GetFunction · 0.50
resizeMethod · 0.45
dataMethod · 0.45
SynchronizeMethod · 0.45

Tested by

no test coverage detected