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
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2014-02-07 19:14:50 +0400
committerRonan Collobert <ronan@collobert.com>2014-02-07 19:18:06 +0400
commit512626efb2d926d58f8ab5a57fb88d7823d167b5 (patch)
tree80408224cca1db223b23f985ceb6109e2212b8b5 /generic
parent6ce6812226513dafc6ef679fdff1376653116a8c (diff)
fix SparseLinear debug printf
Diffstat (limited to 'generic')
-rw-r--r--generic/SparseLinear.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/SparseLinear.c b/generic/SparseLinear.c
index 5e0143f..f39791b 100644
--- a/generic/SparseLinear.c
+++ b/generic/SparseLinear.c
@@ -26,7 +26,7 @@ static int nn_(SparseLinear_updateOutput)(lua_State *L)
output->stride[0]);
}
else {
- printf("\nOutput: %d not between 0 and %d\n", offset, dim-1);
+ printf("\nupdateOutput: %ld not between 1 and %ld\n", offset+1, dim);
luaL_error(L, "index out of bound");
}
}
@@ -62,7 +62,7 @@ static int nn_(SparseLinear_accGradParameters)(lua_State *L)
gradWeight->stride[0]);
}
else {
- printf("\nAccG: %d not between 0 and %d\n", offset, dim-1);
+ printf("\naccGradParameters: %ld not between 1 and %ld\n", offset+1, dim);
luaL_error(L, "index out of bound");
}
}
@@ -105,7 +105,7 @@ int nn_(SparseLinear_updateParameters)(lua_State *L)
weight->stride[0]);
}
else {
- printf("\nUpdateP: %d not between 0 and %d\n", offset, dim-1);
+ printf("\nupdateParameters: %ld not between 1 and %ld\n", offset+1, dim);
luaL_error(L, "index out of bound");
}
}