diff options
author | Sam Gross <sgross@fb.com> | 2016-12-22 01:17:25 +0300 |
---|---|---|
committer | Sam Gross <sgross@fb.com> | 2016-12-22 01:17:25 +0300 |
commit | bedf7f04ee8627d850b0481db7db6cac39652317 (patch) | |
tree | 14294e516d452aec7554e71d497e45d5401c5300 | |
parent | 0a48d8e9430c47d6074bdae3a3d5341c3c5a75ff (diff) |
Use less memory in VolumetricDilatedMaxPooling tests
Previously, VolumetricDilatedMaxPooling_backward_batch could run out of
memory even on a 12GB GPU.
-rw-r--r-- | test.lua | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -4469,8 +4469,8 @@ function cunntest.VolumetricMaxPooling_backward() end function cunntest.VolumetricDilatedMaxPooling_forward_batch() - local bs = math.random(8,16) - local from = math.random(8,16) + local bs = math.random(4,8) + local from = math.random(4,8) local to = from local kt = math.random(2,4) local ki = math.random(2,4) @@ -4513,8 +4513,8 @@ function cunntest.VolumetricDilatedMaxPooling_forward_batch() end function cunntest.VolumetricDilatedMaxPooling_backward_batch() - local bs = math.random(8,16) - local from = math.random(8,16) + local bs = math.random(4,8) + local from = math.random(4,8) local to = from local kt = math.random(2,4) local ki = math.random(2,4) @@ -4522,9 +4522,9 @@ function cunntest.VolumetricDilatedMaxPooling_backward_batch() local st = math.random(2,4) local si = math.random(2,4) local sj = math.random(2,4) - local outt = math.random(32,60) - local outi = math.random(32,60) - local outj = math.random(32,60) + local outt = math.random(8,16) + local outi = math.random(8,16) + local outj = math.random(8,16) local padt = math.random(0,kt/2-1) local padi = math.random(0,ki/2-1) local padj = math.random(0,kj/2-1) |