diff options
author | nicholas-leonard <nick@nikopia.org> | 2014-07-19 22:45:40 +0400 |
---|---|---|
committer | nicholas-leonard <nick@nikopia.org> | 2014-07-19 22:45:40 +0400 |
commit | 23ef638a94cc3ea0f27df3228c02e8dc084c82f8 (patch) | |
tree | 0dfdf5985d7cc7cb015e43564dc4abe4ee75df5b /Tensor.lua | |
parent | df1f254459359766517c433953a075aef94c1756 (diff) |
torch.CudaTensor:view
Diffstat (limited to 'Tensor.lua')
-rw-r--r-- | Tensor.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ end do local metatable = torch.getmetatable('torch.CudaTensor') - for _,func in pairs{'expand', 'expandAs'} do + for _,func in pairs{'expand', 'expandAs', 'view'} do rawset(metatable, func, torch[func]) end end |