torch/nn — pull request #80 by szagoruyko (2014-10-07 17:20:46+00:00)
Title: modernized MarginCriterion

I've modernized MarginCriterion to behave like other criterions. Previously it could use only the first element of an input tensor. Also added missing test for it.