diff options
author | Adam Lerer <alerer@fb.com> | 2015-07-23 01:52:44 +0300 |
---|---|---|
committer | Adam Lerer <alerer@fb.com> | 2015-08-07 20:53:42 +0300 |
commit | 031013505ffdd0a225dc70e9b5758cab8e57846c (patch) | |
tree | 8a6797474db5a6d511883c2b6708fd04f115fca3 /TensorMath.lua | |
parent | 7e17f37a1bf3cb8f4d1942246d7063ab48ce31ea (diff) |
Merge facebook changes
Diffstat (limited to 'TensorMath.lua')
-rw-r--r-- | TensorMath.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TensorMath.lua b/TensorMath.lua index 9ad81b8..8dbc936 100644 --- a/TensorMath.lua +++ b/TensorMath.lua @@ -645,6 +645,13 @@ wrap("randn", {{name=Tensor, default=true, returned=true, method={default='nil'}}, {name="LongArg"}}) +wrap("multinomial", + cname("multinomial"), + {{name=Tensor, default=true, returned=true, method={default='nil'}}, + {name=Tensor}, + {name="int"}, + {name="boolean", default=false}}) + wrap("clamp", cname("clamp"), {{name=Tensor, default=true, returned=true, method={default='nil'}}, |