diff --git a/src/Flux.jl b/src/Flux.jl index 768e851c..f9268829 100644 --- a/src/Flux.jl +++ b/src/Flux.jl @@ -24,6 +24,7 @@ export SGD, ADAM, ADAMW, AdaMax, Momentum, Nesterov, RMSProp, ADAGrad, ADADelta, AMSGrad, NADAM include("utils.jl") +# export stop include("onehot.jl") include("treelike.jl") diff --git a/src/utils.jl b/src/utils.jl index c53f7864..1e119148 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -153,3 +153,9 @@ function jacobian(m,x) end J' end + +struct StopException <: Exception end + +function stop() + throw(StopException) +end \ No newline at end of file