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

github.com/torch/nngraph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek <marek@deepmind.com>2016-03-09 18:35:09 +0300
committerMarek <marek@deepmind.com>2016-03-09 18:35:09 +0300
commitebde0bd1a59fcab7fb441179aa8cf26ab6657c18 (patch)
tree6f0b88993057d6562e5a77c372102e72638af939
parent2c66c0d9ceed8fdfd4f0230a4d0d38f6d9fbcee0 (diff)
Improved error message (expecting table of inputs)
I think a better error message. Currently if I pass in 2 comma separated inputs the error is: "Error, expecting 2 inputs". After this change it will be "Error, expecting table of 2 inputs.".
-rw-r--r--gmodule.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmodule.lua b/gmodule.lua
index 3501f0c..2a367d4 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -274,7 +274,7 @@ function gModule:runForwardFunction(func,input)
if nInputs <= 1 then
input={input}
elseif type(input) ~= "table" then
- error(string.format("expecting %s inputs", nInputs))
+ error(string.format("expecting table of %s inputs", nInputs))
end
local function neteval(node)
local function propagate(node,x)