Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicholas-leonard <nick@nikopia.org>2014-07-19 22:45:40 +0400
committernicholas-leonard <nick@nikopia.org>2014-07-19 22:45:40 +0400
commit23ef638a94cc3ea0f27df3228c02e8dc084c82f8 (patch)
tree0dfdf5985d7cc7cb015e43564dc4abe4ee75df5b /Tensor.lua
parentdf1f254459359766517c433953a075aef94c1756 (diff)
torch.CudaTensor:view
Diffstat (limited to 'Tensor.lua')
-rw-r--r--Tensor.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tensor.lua b/Tensor.lua
index c8e74e8..9eb204e 100644
--- a/Tensor.lua
+++ b/Tensor.lua
@@ -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