Skip to content

Commit

Permalink
Remove Duplicate code in Network::Allgather() (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
gy741 authored and guolinke committed Oct 7, 2018
1 parent f66716c commit 4cf0e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/network.cpp
Expand Up @@ -117,8 +117,8 @@ void Network::AllreduceByAllGather(char* input, comm_size_t input_size, int type
void Network::Allgather(char* input, comm_size_t send_size, char* output) {
if (num_machines_ <= 1) {
Log::Fatal("Please initilize the network interface first");
return;
}
if (num_machines_ <= 1) { return; }
// assign blocks
block_start_[0] = 0;
block_len_[0] = send_size;
Expand Down

0 comments on commit 4cf0e5d

Please sign in to comment.