Author:

By default, the computation in a INDArrayLayer will re-evaluate again and again
if the INDArrayLayer is used by multiple other operations.
This behavior is very inefficient if there is are diamond dependencies in a neural network.
It's wise to use CumulativeINDArrayLayers instead of this INDArrayLayers in such neural network.