BVLC/caffe — pull request #1479 by sguada (2014-11-26 10:48:34+00:00)
Title: Added CHECK if loss is NaN

As mentioned in #1349 If Loss is Nan it doesn't make sense to keep training.