diff options
author | Trevor Killeen <killeentm@gmail.com> | 2016-10-06 17:26:25 +0300 |
---|---|---|
committer | Trevor Killeen <killeentm@gmail.com> | 2016-10-07 21:50:28 +0300 |
commit | 29e5059c3980bb2a905a7f7eacc4add1123b1b93 (patch) | |
tree | bc34996e730af321e1be6039cb44bcbe3dca0afc /TensorMath.lua | |
parent | 74a97cf2b0eeaff5b19f79fd75493b316e340c9d (diff) |
[cutorch refactor] move cross(...) to generic
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 1a06121..53a112a 100644 --- a/TensorMath.lua +++ b/TensorMath.lua @@ -596,6 +596,13 @@ for k, Tensor_ in pairs(handledTypenames) do {name=real}, {name=real}}) + wrap("cross", + cname("cross"), + {{name=Tensor, default=true, returned=true}, + {name=Tensor}, + {name=Tensor}, + {name="index", default=0}}) + wrap("div", cname("div"), {{name=Tensor, default=true, returned=true, method={default='nil'}}, |