Skip to content

Commit

Permalink
io
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Nov 24, 2017
1 parent 4177125 commit 4bbef45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,19 +259,19 @@ Construct a data provider from `NDArray` or Julia Arrays.
TODO: remove `data_padding` and `label_padding`, and implement rollover that copies
the last or first several training samples to feed the padding.
"""
mutable struct ArrayDataProvider{T,N,S,M} <: AbstractDataProvider
mutable struct ArrayDataProvider{T,N} <: AbstractDataProvider
data_arrays :: Vector{Array{T,N}}
data_names :: Vector{Symbol}
label_arrays :: Vector{Array{S,M}}
label_arrays
label_names :: Vector{Symbol}
batch_size :: Int
sample_count :: Int
shuffle :: Bool
data_padding :: MX_float
label_padding :: MX_float

data_batch :: Vector{NDArray{T,N}}
label_batch :: Vector{NDArray{S,M}}
data_batch
label_batch
end

# Julia's type system is sometimes very frustrating. You cannot specify a function
Expand Down

0 comments on commit 4bbef45

Please sign in to comment.