|
|
@ -68,7 +68,7 @@ bool IsCompiledWithCUDA() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool IsCompiledWithDIST() {
|
|
|
|
bool IsCompiledWithDIST() {
|
|
|
|
#ifdef PADDLE_WITH_DIST
|
|
|
|
#ifdef PADDLE_WITH_DISTRIBUTE
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -669,7 +669,7 @@ All parameter, weight, gradient are variables in Paddle.
|
|
|
|
const std::string &, Scope *, std::vector<Scope *> &,
|
|
|
|
const std::string &, Scope *, std::vector<Scope *> &,
|
|
|
|
const ExecutionStrategy &, const BuildStrategy &, size_t,
|
|
|
|
const ExecutionStrategy &, const BuildStrategy &, size_t,
|
|
|
|
size_t>())
|
|
|
|
size_t>())
|
|
|
|
.def("bcast_params", &ParallelExecutor::BCastParamsToDevs)
|
|
|
|
.def("bcast_params", &ParallelExecutor::BCastParamsToDevices)
|
|
|
|
// NOTE: even we return a vec<Scope*>* to Python use reference policy.
|
|
|
|
// NOTE: even we return a vec<Scope*>* to Python use reference policy.
|
|
|
|
// We still cannot get local_scope from this vector, since the element
|
|
|
|
// We still cannot get local_scope from this vector, since the element
|
|
|
|
// of vec<Scope*> will be freed by Python GC. We can only return Scope*
|
|
|
|
// of vec<Scope*> will be freed by Python GC. We can only return Scope*
|
|
|
|