24 #ifdef USE_STD_NAMESPACE 31 static const float kInputNodeBias = 0.0f;
51 template <
class BuffType>
bool ReadBinary(BuffType *input_buff) {
53 if (input_buff->Read(&val,
sizeof(val)) !=
sizeof(val)) {
58 bias_ = kInputNodeBias;
74 if (input_buff->Read(&val,
sizeof(val)) !=
sizeof(val)) {
100 static float Sigmoid(
float activation);
vector< float * > fan_in_weights_
void set_node_type(NeuronTypes type)
Neuron::NeuronTypes node_type() const
static const float kSigmoidTable[]
vector< Neuron * > fan_in_
Neuron * fan_in(int idx) const
float fan_in_wts(int idx) const
void AddFromConnection(Neuron *neuron_vec, float *wts_offset, int from_cnt)
bool ReadBinary(BuffType *input_buff)
void set_output(float out_val)
static float Sigmoid(float activation)