Upstream bug https://github.com/deeplearning4j/nd4j/issues/2271 You can reproduce this bug in NaN-fix branch: ``` git clone https://github.com/ThoughtWorksInc/DeepLearning.scala.git --branch NaN-fix cd DeepLearning.scala sbt plugins-INDArrayLayers/testOnly com.thoughtworks.deeplearning.plugins.NaNSpec ```