diff options
author | Soumith Chintala <soumith@gmail.com> | 2014-06-13 20:44:31 +0400 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2014-06-13 20:44:31 +0400 |
commit | 17901405b75abb46be14a69f7f5d5d5ed4d020b6 (patch) | |
tree | e31f0c0cd067f45bf1c4c8f9c4b3e1785419a455 /TensorMath.lua | |
parent | 731452d69ee7ce4c66092f343beaeff3d9275ef8 (diff) | |
parent | ab4dddb54f2bf328cf83346e7b21d1316c0a7c46 (diff) |
Merge pull request #42 from nicholas-leonard/master
torch.renorm
Diffstat (limited to 'TensorMath.lua')
-rw-r--r-- | TensorMath.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TensorMath.lua b/TensorMath.lua index 2edac20..e2863cd 100644 --- a/TensorMath.lua +++ b/TensorMath.lua @@ -794,6 +794,14 @@ static void THTensor_random1__(THTensor *self, THGenerator *gen, long b) {name=Tensor}, {name=real}, {name="index"}}) + + wrap("renorm", + cname("renorm"), + {{name=Tensor, default=true, returned=true, method={default='nil'}}, + {name=Tensor, method={default=1}}, + {name=real}, + {name="index"}, + {name=real}}) wrap("dist", cname("dist"), |