blob: 93bc26e49b0f9a51225a2b7583d607f913d78c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD
license as described in the file LICENSE.
*/
//This implements various accumulate functions building on top of allreduce.
#ifndef ACCUMULATE_H
#define ACCUMULATE_H
#include "global_data.h"
void accumulate(vw& all, std::string master_location, regressor& reg, size_t o);
float accumulate_scalar(vw& all, std::string master_location, float local_sum);
void accumulate_weighted_avg(vw& all, std::string master_location, regressor& reg);
void accumulate_avg(vw& all, std::string master_location, regressor& reg, size_t o);
#endif
|