Advertisement
codeboy32

StackTrace

Aug 24th, 2022
1,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 11.44 KB | None | 0 0
  1. ERROR: DimensionMismatch("arrays could not be broadcast to a common size; got a dimension with lengths 128 and 24")
  2. Stacktrace:
  3.   [1] _bcs1
  4.     @ ./broadcast.jl:516 [inlined]
  5.   [2] _bcs(shape::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}, newshape::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}) (repeats 2 times)
  6.     @ Base.Broadcast ./broadcast.jl:510
  7.   [3] broadcast_shape
  8.     @ ./broadcast.jl:504 [inlined]
  9.   [4] combine_axes
  10.     @ ./broadcast.jl:499 [inlined]
  11.   [5] instantiate
  12.     @ ./broadcast.jl:281 [inlined]
  13.   [6] materialize
  14.     @ ./broadcast.jl:860 [inlined]
  15.   [7] accum(x::Array{Float32, 3}, ys::Array{Float32, 3})
  16.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/lib/lib.jl:25
  17.   [8] Pullback
  18.     @ ~/Desktop/dev/FastAI.jl/FastTimeSeries/src/models/InceptionTime.jl:50 [inlined]
  19.   [9] (::typeof((λ)))(Δ::Array{Float32, 3})
  20.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
  21.  [10] macro expansion
  22.     @ ~/.julia/packages/Flux/js6mP/src/layers/basic.jl:53 [inlined]
  23.  [11] Pullback
  24.     @ ~/.julia/packages/Flux/js6mP/src/layers/basic.jl:53 [inlined]
  25.  [12] (::typeof((applychain)))(Δ::Matrix{Float32})
  26.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
  27.  [13] Pullback
  28.     @ ~/.julia/packages/Flux/js6mP/src/layers/basic.jl:51 [inlined]
  29.  [14] (::typeof((λ)))(Δ::Matrix{Float32})
  30.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
  31.  [15] Pullback
  32.     @ ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:54 [inlined]
  33.  [16] (::typeof((λ)))(Δ::Float32)
  34.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
  35.  [17] Pullback
  36.     @ ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:70 [inlined]
  37.  [18] (::typeof((λ)))(Δ::Float32)
  38.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface2.jl:0
  39.  [19] (::Zygote.var"#89#90"{Zygote.Params{Zygote.Buffer{Any, Vector{Any}}}, typeof((λ)), Zygote.Context})(Δ::Float32)
  40.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface.jl:357
  41.  [20] gradient(f::Function, args::Zygote.Params{Zygote.Buffer{Any, Vector{Any}}})
  42.     @ Zygote ~/.julia/packages/Zygote/DkIUK/src/compiler/interface.jl:76
  43.  [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}}})
  44.     @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:70
  45.  [22] (::FluxTraining.var"#69#71"{Learner})(handle::FluxTraining.var"#handlefn#78"{Learner, TrainingPhase}, state::FluxTraining.PropDict{Any})
  46.     @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:53
  47.  [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}}}})
  48.     @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:133
  49.  [24] step!(learner::Learner, phase::TrainingPhase, batch::Tuple{Array{Float32, 3}, Flux.OneHotArray{UInt32, 6, 1, 2, Vector{UInt32}}})
  50.     @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:51
  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)
  52.     @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:24
  53.  [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)
  54.     @ FluxTraining ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:105
  55.  [27] epoch!
  56.     @ ~/.julia/packages/FluxTraining/iBFSd/src/training.jl:22 [inlined]
  57.  [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})()
  58.     @ FastAI ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:31
  59.  [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)
  60.     @ FastAI ~/Desktop/dev/FastAI.jl/src/training/utils.jl:77
  61.  [30] #156
  62.     @ ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:28 [inlined]
  63.  [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}}})
  64.     @ FastAI ~/Desktop/dev/FastAI.jl/src/training/utils.jl:52
  65.  [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{}}})
  66.     @ FastAI ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:27
  67.  [33] fitonecycle!(learner::Learner, nepochs::Int64, maxlr::Float64)
  68.     @ FastAI ~/Desktop/dev/FastAI.jl/src/training/onecycle.jl:21
  69.  [34] top-level scope
  70.     @ REPL[10]:1
  71.  [35] top-level scope
  72.     @ ~/.julia/packages/CUDA/tTK8Y/src/initialization.jl:52
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement