Skip to content

Commit

Permalink
auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
YukioOobuchi committed Feb 14, 2018
1 parent 6db1e64 commit 8ae379f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/nbla/communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ void Communicator::all_reduce(const vector<NdArrayPtr> &ndarray_list,
NBLA_ERROR(error_code::not_implemented, "CPU all_reduce is not implemented.")
}

void Communicator::all_reduce(NdArrayPtr ndarray, bool division,
bool inplace, const string &group) {
void Communicator::all_reduce(NdArrayPtr ndarray, bool division, bool inplace,
const string &group) {
NBLA_ERROR(error_code::not_implemented, "CPU all_reduce is not implemented.")
}

Expand Down
8 changes: 4 additions & 4 deletions src/nbla/communicator/data_parallel_communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ void DataParallelCommunicator<T>::all_reduce(
}

template <typename T>
void DataParallelCommunicator<T>::all_reduce(NdArrayPtr ndarray,
bool division, bool inplace,
void DataParallelCommunicator<T>::all_reduce(NdArrayPtr ndarray, bool division,
bool inplace,
const string &group) {
NBLA_ERROR(error_code::not_implemented, "CPU all_reduce is not implemented.")
}

template <typename T>
void DataParallelCommunicator<T>::reduce_scatter(
const vector<NdArrayPtr> &ndarray_list, NdArrayPtr ndarray,
bool division, const string &group) {
const vector<NdArrayPtr> &ndarray_list, NdArrayPtr ndarray, bool division,
const string &group) {
NBLA_ERROR(error_code::not_implemented,
"CPU reduce_scatter is not implemented.")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@ void MultiProcessDataParallelCommunicator<T>::all_reduce(
}

template <typename T>
void MultiProcessDataParallelCommunicator<T>::all_reduce(
NdArrayPtr ndarray, bool division, bool inplace,
const string &group) {
void MultiProcessDataParallelCommunicator<T>::all_reduce(NdArrayPtr ndarray,
bool division,
bool inplace,
const string &group) {
NBLA_ERROR(error_code::not_implemented, "CPU all_reduce is not implemented.")
}

template <typename T>
void MultiProcessDataParallelCommunicator<T>::reduce_scatter(
const vector<NdArrayPtr> &ndarray_list, NdArrayPtr ndarray,
bool division, const string &group) {
const vector<NdArrayPtr> &ndarray_list, NdArrayPtr ndarray, bool division,
const string &group) {
NBLA_ERROR(error_code::not_implemented,
"CPU reduce_scatter is not implemented.")
}
Expand All @@ -123,8 +124,8 @@ void MultiProcessDataParallelCommunicator<T>::bcast(
}

template <typename T>
void MultiProcessDataParallelCommunicator<T>::bcast(NdArrayPtr ndarray,
int src, bool inplace,
void MultiProcessDataParallelCommunicator<T>::bcast(NdArrayPtr ndarray, int src,
bool inplace,
const string &group) {
NBLA_ERROR(error_code::not_implemented, "CPU bcast is not implemented.")
}
Expand Down

0 comments on commit 8ae379f

Please sign in to comment.