gradWeight lua prototype
gradWeight in C
gradweight in cuda
...