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

github.com/torch/cunn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@gmail.com>2015-09-17 19:42:39 +0300
committersoumith <soumith@gmail.com>2015-09-17 19:42:39 +0300
commit4f480aeb2a34aa8833b7f89f0e3d9bdd9a2c0415 (patch)
tree5b5eb3a889c57959bd823a09589e331c1bd71cf8 /init.lua
parentaab06d12e0ed361d696b268620796388ca8f59c7 (diff)
added getParameters to be on CPU
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 0145570..11aa3c5 100644
--- a/init.lua
+++ b/init.lua
@@ -5,3 +5,5 @@ require "libcunn"
include('test.lua')
include('DataParallelTable.lua')
+
+nn.Module._flattenTensorBuffer['torch.CudaTensor'] = torch.FloatTensor.new