public Collection < INDArray > getUpdates ( ) { // just drain stuff from the queue val list = new ArrayList < INDArray > ( ) ; updatesQueue . drainTo ( list ) ; return list ; }
This method returns updates received from network