wangkuiyi-patch-2
Yu Yang 7 years ago
parent e9e27e0f32
commit a822f8ddbb

@ -190,6 +190,7 @@ void PyCUDATensorSetFromArray(
static_cast<const platform::CUDADeviceContext *>(pool.Get(place));
paddle::platform::GpuMemcpyAsync(dst, array.data(), sizeof(T) * array.size(),
cudaMemcpyHostToDevice, dev_ctx->stream());
dev_ctx->Wait();
}
template <>

Loading…
Cancel
Save