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:
-rw-r--r--test/test_nngraph.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_nngraph.lua b/test/test_nngraph.lua
index 340ab24..0b06f9c 100644
--- a/test/test_nngraph.lua
+++ b/test/test_nngraph.lua
@@ -348,7 +348,9 @@ function test.test_gradInputType()
tester:assert(hidden_a:label():match('DescB') ~= nil)
local fg_tmpfile = os.tmpname()
local bg_tmpfile = os.tmpname()
- graph.dot(net.fg, 'Test', fg_tmpfile)
+ if not pcall(function() graph.dot(net.fg, 'Test', fg_tmpfile) end) then
+ return -- prevent graphviz not found error
+ end
graph.dot(net.fg, 'Test BG', bg_tmpfile)
local function checkDotFile(tmpfile)