diff options
author | soumith <soumith@fb.com> | 2014-11-26 05:23:52 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2014-11-26 05:23:52 +0300 |
commit | b0e6e3f0ad10e931a1f83197b127a442e179e67e (patch) | |
tree | 4d58247a109e9a211317625e1263a637a5981070 /test | |
parent | b38b1a17251639eb68df4acde5784a661e2c8888 (diff) |
refactoring lots of duplicated code
Diffstat (limited to 'test')
-rw-r--r-- | test/clone.lua | 13 | ||||
-rw-r--r-- | test/test.lua | 2 |
2 files changed, 1 insertions, 14 deletions
diff --git a/test/clone.lua b/test/clone.lua deleted file mode 100644 index 3ea27cc..0000000 --- a/test/clone.lua +++ /dev/null @@ -1,13 +0,0 @@ -require 'cudnn' - -i = torch.randn(128, 3, 100, 100):cuda() - -m1 = nn.Sequential() -m1:add(cudnn.SpatialConvolution(3,16,5,5)) -m1:add(cudnn.SpatialMaxPooling(2,2,2,2)) -m1:cuda() -m2 = m1:clone():cuda() - - -o1=m1:forward(i) -o2=m2:forward(i) diff --git a/test/test.lua b/test/test.lua index 3750418..192f187 100644 --- a/test/test.lua +++ b/test/test.lua @@ -527,5 +527,5 @@ mytester:add(cudnntest) for i=1,cutorch.getDeviceCount() do print('Running test on device: ' .. i) cutorch.setDevice(i) - mytester:run(tests) + mytester:run() end |