public void apply ( InMemoryLookupTable table ) { for ( Map . Entry < Integer , Set < INDArray > > entry : changes . entrySet ( ) ) { Set < INDArray > changes = entry . getValue ( ) ; INDArray toChange = table . getSyn0 ( ) . slice ( entry . getKey ( ) ) ; for ( INDArray syn1 : changes ) Nd4j . getBlasWrapper ( ) . level1 ( ) . axpy ( toChange . length ( ) , 1 , syn1 , toChange ) ; } }
Take the changes and apply them to the given table