Generic support for cuda tensor types in SpatialClassNLLCriterion.
Generic support for cuda tensor types in SpatialClassNLLCriterion.

apaszke/nn,joeyhng/nn,nicholas-leonard/nn,colesbury/nn,sagarwaghmare69/nn