projects
/
dagnn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1de441
)
Replaced torch.abs with math.abs.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 14 Jan 2017 17:09:39 +0000
(18:09 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 14 Jan 2017 17:09:39 +0000
(18:09 +0100)
test-dagnn.lua
patch
|
blob
|
history
diff --git
a/test-dagnn.lua
b/test-dagnn.lua
index
9f343a9
..
5d8a309
100755
(executable)
--- a/
test-dagnn.lua
+++ b/
test-dagnn.lua
@@
-57,7
+57,7
@@
function checkGrad(model, criterion, input, target)
local num = (loss1 - loss0) / (2 * epsilon)
if num ~= ana then
- err = math.max(err,
torch.abs(num - ana) / torc
h.abs(num))
+ err = math.max(err,
math.abs(num - ana) / mat
h.abs(num))
end
end