reorganise batches

This commit is contained in:
Mike J Innes 2018-02-13 15:45:33 +00:00
parent 34217b1fa2
commit 1baa7227e3
5 changed files with 2 additions and 11 deletions

View File

@ -34,7 +34,6 @@ include("layers/conv.jl")
include("layers/recurrent.jl")
include("layers/normalisation.jl")
include("batches/Batches.jl")
include("data/Data.jl")
include("jit/JIT.jl")

View File

@ -1,9 +0,0 @@
module Batches
import ..Flux
export Tree
include("tree.jl")
end

View File

@ -14,6 +14,7 @@ include("mnist.jl")
include("cmudict.jl")
using .CMUDict
include("tree.jl")
include("sentiment.jl")
using .Sentiment

View File

@ -19,7 +19,7 @@ function getfile(name)
return text
end
using ..Flux.Batches
using ..Data: Tree
totree_(n, w) = Tree{Any}((parse(Int, n), w))
totree_(n, a, b) = Tree{Any}((parse(Int, n), nothing), totree(a), totree(b))