better for nested batches
This commit is contained in:
parent
14afe54143
commit
edfb0211e6
@ -5,7 +5,7 @@ const AArray = AbstractArray
|
||||
initn(dims...) = randn(dims...)/100
|
||||
|
||||
tobatch(xs::Batch) = rawbatch(xs)
|
||||
tobatch(xs) = unsqueeze(xs)
|
||||
tobatch(xs) = tobatch(batchone(xs))
|
||||
|
||||
function train!(m, train, test = []; epoch = 1, η = 0.1)
|
||||
i = 0
|
||||
|
Loading…
Reference in New Issue
Block a user