From a1e35ea2c8838cc7e4e12fa290bab19d1b49c48a Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Wed, 1 Feb 2017 19:51:08 +0530 Subject: [PATCH] stacktrace fixes --- src/backend/mxnet/graph.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/mxnet/graph.jl b/src/backend/mxnet/graph.jl index 16a151ce..44b7c5cd 100644 --- a/src/backend/mxnet/graph.jl +++ b/src/backend/mxnet/graph.jl @@ -9,6 +9,7 @@ end using Base: @get! using DataFlow: Constant, constant using DataFlow.Interpreter +using DataFlow.Interpreter: Exception, totrace using Flux: imap # TODO: implement Julia's type promotion rules @@ -97,6 +98,6 @@ macro mxerr(stk, ex) catch e (isa(e, mx.MXError) && (node = errnode(e)) != nothing) || rethrow() stk = $(esc(stk)) - throw(DataFlow.Exception(e, DataFlow.totrace(stk[node]))) + throw(Exception(e, totrace(stk[node]))) end) end