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

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornicholas-leonard <nick@nikopia.org>2014-07-10 05:34:04 +0400
committernicholas-leonard <nick@nikopia.org>2014-07-10 05:34:04 +0400
commite97a4d8b8e725b029b889a83ed2fed16e689c9e5 (patch)
tree43c1fd32478c75255653971e73581905d7cf63fc /test
parentca59595974936b9ff42377677e7553627f397197 (diff)
rename ElementTable -> SelectTable
Diffstat (limited to 'test')
-rw-r--r--test/test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.lua b/test/test.lua
index 45cc2fe..ad41ee1 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -1899,7 +1899,7 @@ function nntest.SplitTable()
end
end
-function nntest.ElementTable()
+function nntest.SelectTable()
local input = {
torch.rand(3,4,5), torch.rand(3,4,5),
{torch.rand(3,4,5)},
@@ -1927,7 +1927,7 @@ function nntest.ElementTable()
local nonIdx = {2,3,4,1}
local module
for idx = 1,#input do
- module = nn.ElementTable(idx)
+ module = nn.SelectTable(idx)
local output = module:forward(input)
equal(output, input[idx], "output dimension " .. idx)
local gradInput = module:backward(input, gradOutputs[idx])