Skip to content

Commit

Permalink
not init multiprocessing by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI committed Feb 8, 2022
1 parent 64ba056 commit 88a0008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions paddle/fluid/pybind/pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1353,8 +1353,10 @@ PYBIND11_MODULE(core_noavx, m) {

// copy data & reset holder
if (platform::is_cuda_pinned_place(holder->place())) {
#ifdef PADDLE_WITH_CUDA
memory::Copy(platform::CPUPlace(), shared_holder->ptr(),
platform::CUDAPinnedPlace(), data_ptr, data_size);
#endif
} else {
memory::Copy(platform::CPUPlace(), shared_holder->ptr(),
platform::CPUPlace(), data_ptr, data_size);
Expand Down
1 change: 0 additions & 1 deletion python/paddle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import paddle.metric # noqa: F401
import paddle.regularizer # noqa: F401
import paddle.incubate # noqa: F401
import paddle.multiprocessing # noqa: F401
import paddle.autograd # noqa: F401
import paddle.device # noqa: F401

Expand Down

0 comments on commit 88a0008

Please sign in to comment.