properly importing functions
This commit is contained in:
parent
1228e9c5e2
commit
e239eb1105
@ -7,7 +7,7 @@ using MacroTools: @forward
|
|||||||
|
|
||||||
export Chain, Dense, RNN, LSTM, GRU, Conv,
|
export Chain, Dense, RNN, LSTM, GRU, Conv,
|
||||||
Dropout, LayerNorm, BatchNorm,
|
Dropout, LayerNorm, BatchNorm,
|
||||||
params, mapleaves, cpu, gpu
|
params, mapleaves, cpu, gpu, stop, StopException
|
||||||
|
|
||||||
@reexport using NNlib
|
@reexport using NNlib
|
||||||
using NNlib: @fix
|
using NNlib: @fix
|
||||||
@ -24,7 +24,6 @@ export SGD, ADAM, ADAMW, AdaMax, Momentum, Nesterov,
|
|||||||
RMSProp, ADAGrad, ADADelta, AMSGrad, NADAM
|
RMSProp, ADAGrad, ADADelta, AMSGrad, NADAM
|
||||||
|
|
||||||
include("utils.jl")
|
include("utils.jl")
|
||||||
export stop, StopException
|
|
||||||
include("onehot.jl")
|
include("onehot.jl")
|
||||||
include("treelike.jl")
|
include("treelike.jl")
|
||||||
|
|
||||||
@ -39,3 +38,4 @@ include("data/Data.jl")
|
|||||||
@init @require CuArrays="3a865a2d-5b23-5a0f-bc46-62713ec82fae" include("cuda/cuda.jl")
|
@init @require CuArrays="3a865a2d-5b23-5a0f-bc46-62713ec82fae" include("cuda/cuda.jl")
|
||||||
|
|
||||||
end # module
|
end # module
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using Juno
|
using Juno
|
||||||
using Flux.Tracker: back!
|
using Flux.Tracker: back!
|
||||||
# include("../utils.jl")
|
import Flux: stop, StopException
|
||||||
|
|
||||||
runall(f) = f
|
runall(f) = f
|
||||||
runall(fs::AbstractVector) = () -> foreach(call, fs)
|
runall(fs::AbstractVector) = () -> foreach(call, fs)
|
||||||
|
Loading…
Reference in New Issue
Block a user