homomorphic encryption/client/mnist.js
// # The normal forward step that might use homomorphic encryption
The normal forward step that might use homomorphic encryption
The normal forward step that might use homomorphic encryption
function forward_step(input_samples, layers) {
    var i, activations = new Array()
    activations.push(nj.array(input_samples))
    for (i = 0; i < layers.length; i++) {
        activations.push(layers[i].forward(activations[activations.length - 1]))
    }
    return activations
}
function forward_step ( input_samples , layers ) { var i , activations = new Array ( ) activations . push ( nj . array ( input_samples ) ) for ( i = 0 ; i < layers . length ; i ++ ) { activations . push ( layers [ i ] . forward ( activations [ activations . length - 1 ] ) ) } return activations }
The normal forward step that might use homomorphic encryption
The normal forward step that might use homomorphic encryption