Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: DimensionMismatch("arrays could not be broadcast to a common size; got a dimension with lengths 128 and 24")
- Stacktrace:
- [1] _bcs1
- @ ./broadcast.jl:516 [inlined]
- [2] _bcs(shape::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}, newshape::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}) (repeats 2 times)
- @ Base.Broadcast ./broadcast.jl:510
- [3] broadcast_shape
- @ ./broadcast.jl:504 [inlined]
- [4] combine_axes
- @ ./broadcast.jl:499 [inlined]
- [5] instantiate
- @ ./broadcast.jl:281 [inlined]
- [6] materialize
- @ ./broadcast.jl:860 [inlined]
- [7] accum(x::Array{Float32, 3}, ys::Array{Float32, 3})
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/lib/lib.jl:25
- [8] Pullback
- @ ~/Desktop/dev/FastAI.jl/FastTimeSeries/src/models/InceptionTime.jl:50 [inlined]
- [9] (::typeof(∂(λ)))(Δ::Array{Float32, 3})
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
- [10] macro expansion
- @ ~/.julia/packages/Flux/js6mP/src/layers/basic.jl:53 [inlined]
- [11] Pullback
- @ ~/.julia/packages/Flux/js6mP/src/layers/basic.jl:53 [inlined]
- [12] (::typeof(∂(applychain)))(Δ::Matrix{Float32})
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
- [13] Pullback
- @ ~/.julia/packages/Flux/js6mP/src/layers/basic.jl:51 [inlined]
- [14] (::typeof(∂(λ)))(Δ::Matrix{Float32})
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
- [15] Pullback
- @ ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:54 [inlined]
- [16] (::typeof(∂(λ)))(Δ::Float32)
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
- [17] Pullback
- @ ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:70 [inlined]
- [18] (::typeof(∂(λ)))(Δ::Float32)
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
- [19] (::Zygote.var"#89#90"{Zygote.Params{Zygote.Buffer{Any, Vector{Any}}}, typeof(∂(λ)), Zygote.Context})(Δ::Float32)
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface.jl:357
- [20] gradient(f::Function, args::Zygote.Params{Zygote.Buffer{Any, Vector{Any}}})
- @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface.jl:76
- [21] _gradient(f::FluxTraining.var"#70#72"{FluxTraining.var"#handlefn#78"{Learner, TrainingPhase}, FluxTraining.PropDict{Any}, Learner}, #unused#::ADAM, m::Chain{Tuple{typeof(FastTimeSeries.Models.changedims), FastTimeSeries.Models.InceptionBlock, Chain{Tuple{AdaptiveMeanPool{3, 1}, typeof(Flux.flatten)}}, Dense{typeof(identity), Matrix{Float32}, Vector{Float32}}}}, ps::Zygote.Params{Zygote.Buffer{Any, Vector{Any}}})
- @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:70
- [22] (::FluxTraining.var"#69#71"{Learner})(handle::FluxTraining.var"#handlefn#78"{Learner, TrainingPhase}, state::FluxTraining.PropDict{Any})
- @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:53
- [23] runstep(stepfn::FluxTraining.var"#69#71"{Learner}, learner::Learner, phase::TrainingPhase, initialstate::NamedTuple{(:xs, :ys), Tuple{Array{Float32, 3}, Flux.OneHotArray{UInt32, 6, 1, 2, Vector{UInt32}}}})
- @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:133
- [24] step!(learner::Learner, phase::TrainingPhase, batch::Tuple{Array{Float32, 3}, Flux.OneHotArray{UInt32, 6, 1, 2, Vector{UInt32}}})
- @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:51
- [25] (::FluxTraining.var"#67#68"{Learner, TrainingPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Training}, Random._GLOBAL_RNG, Val{true}}})(#unused#::Function)
- @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:24
- [26] runepoch(epochfn::FluxTraining.var"#67#68"{Learner, TrainingPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Training}, Random._GLOBAL_RNG, Val{true}}}, learner::Learner, phase::TrainingPhase)
- @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:105
- [27] epoch!
- @ ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:22 [inlined]
- [28] (::FastAI.var"#157#159"{Tuple{Pair{TrainingPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Training}, Random._GLOBAL_RNG, Val{true}}}, Pair{ValidationPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Validation}, Random._GLOBAL_RNG, Val{true}}}}, Learner, Int64})()
- @ FastAI ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:31
- [29] withcallbacks(f::FastAI.var"#157#159"{Tuple{Pair{TrainingPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Training}, Random._GLOBAL_RNG, Val{true}}}, Pair{ValidationPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Validation}, Random._GLOBAL_RNG, Val{true}}}}, Learner, Int64}, learner::Learner, callbacks::Scheduler)
- @ FastAI ~/Desktop/dev/FastAI.jl/src/training/utils.jl:77
- [30] #156
- @ ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:28 [inlined]
- [31] withfields(f::FastAI.var"#156#158"{Tuple{Pair{TrainingPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Training}, Random._GLOBAL_RNG, Val{true}}}, Pair{ValidationPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Validation}, Random._GLOBAL_RNG, Val{true}}}}, Learner, Int64, Scheduler}, x::Learner; kwargs::Base.Pairs{Symbol, ADAM, Tuple{Symbol}, NamedTuple{(:optimizer,), Tuple{ADAM}}})
- @ FastAI ~/Desktop/dev/FastAI.jl/src/training/utils.jl:52
- [32] fitonecycle!(learner::Learner, nepochs::Int64, maxlr::Float64; phases::Tuple{Pair{TrainingPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Training}, Random._GLOBAL_RNG, Val{true}}}, Pair{ValidationPhase, MLUtils.DataLoader{FastAI.TaskDataset{Tuple{ObsView{FastTimeSeries.TimeSeriesDataset{Array{Float32, 3}}, Vector{Int64}}, SubArray{Any, 1, Vector{Any}, Tuple{Vector{Int64}}, false}}, SupervisedTask{NamedTuple{(:input, :target, :sample, :encodedsample, :x, :y, :ŷ, :pred), Tuple{TimeSeriesRow, Label{SubString{String}}, Tuple{TimeSeriesRow, Label{SubString{String}}}, Tuple{TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}}, TimeSeriesRow, FastAI.OneHotTensor{0, SubString{String}}, FastAI.OneHotTensor{0, SubString{String}}, Label{SubString{String}}}}, Tuple{OneHot{DataType}, TSPreprocessing{Float32}}}, Validation}, Random._GLOBAL_RNG, Val{true}}}}, wd::Float64, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
- @ FastAI ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:27
- [33] fitonecycle!(learner::Learner, nepochs::Int64, maxlr::Float64)
- @ FastAI ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:21
- [34] top-level scope
- @ REPL[10]:1
- [35] top-level scope
- @ ~/.julia/packages/CUDA/tTK8Y/src/initialization.jl:52
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement