torch/nn — pull request #43 by rgoroshin (2014-07-21 19:37:51+00:00)
Title: remove random gradient in mathsign

mathsign produces a +1 or -1 gradient with equal probability at 0. This is unnecessary and generating random numbers while training slows things down. Wouldn't zero gradient make sense when the inputs have zero distance?