Skip to content

Commit

Permalink
coding style braces on every for body
Browse files Browse the repository at this point in the history
  • Loading branch information
netj committed Jan 23, 2017
1 parent 1132d14 commit 3651366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/inference_result.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ void InferenceResult::reset_gradients() {

void InferenceResult::merge_weights_from(const InferenceResult &other) {
assert(nweights == other.nweights);
for (size_t j = 0; j < nweights; ++j)
for (size_t j = 0; j < nweights; ++j) {
weight_values[j] += other.weight_values[j];
}
}

void InferenceResult::average_weights(size_t count) {
Expand Down

0 comments on commit 3651366

Please sign in to comment.