All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rtbhouse.model.natives.NeuralNetworkNativeOps.h Maven / Gradle / Ivy

Go to download

Small Java lib with few neural network operations: ReLU, linearForward and simple matrix-by-vector multiplication.

There is a newer version: 0.4.1
Show newest version
#include 
#include 

static const float ALPHA = 1.0, BETA = 1.0;
static const int X_INC = 1, Y_INC = 1;

/**
 * Rectified linear unit (ReLU) function. Do its operation in-place.
 *
 * All input vector elements are transformed with function:
 *   f(x) = max(0, x)
 */
inline void ReLU(float *inOut, const int size) {
    int i;
    for(i=0; i>     %s = [", name);
    for(i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy