Searched refs:WEIGHTS_SCALE (Results 1 – 4 of 4) sorted by relevance
93 output[i] = WEIGHTS_SCALE*sum; in compute_dense()128 z[i] = sigmoid_approx(WEIGHTS_SCALE*sum); in compute_gru()138 r[i] = sigmoid_approx(WEIGHTS_SCALE*sum); in compute_gru()148 if (gru->activation == ACTIVATION_SIGMOID) sum = sigmoid_approx(WEIGHTS_SCALE*sum); in compute_gru()149 else if (gru->activation == ACTIVATION_TANH) sum = tansig_approx(WEIGHTS_SCALE*sum); in compute_gru()150 else if (gru->activation == ACTIVATION_RELU) sum = relu(WEIGHTS_SCALE*sum); in compute_gru()
34 #define WEIGHTS_SCALE (1.f/256) macro
94 output[i] *= WEIGHTS_SCALE; in compute_dense()122 z[i] = sigmoid_approx(WEIGHTS_SCALE*z[i]); in compute_gru()130 r[i] = sigmoid_approx(WEIGHTS_SCALE*r[i]); in compute_gru()140 h[i] = z[i]*state[i] + (1-z[i])*tansig_approx(WEIGHTS_SCALE*h[i]); in compute_gru()
32 #define WEIGHTS_SCALE (1.f/128) macro