深度学习中最训练时为什么会出现这种情况


#1

MethodError: no method matching maxpool(::TrackedArray{…,Array{Float32,4}}, ::Tuple{Int64,Int64})
Closest candidates are:
maxpool(::TrackedArray, !Matched::PoolDims; kw…) at C:\Users\卿风.juliapro\JuliaPro_v1.1.1.1\packages\Tracker\RRYy6\src\lib\array.jl:446
maxpool(::AbstractArray{xT,N}, !Matched::PoolDims; kwargs…) where {xT, N} at C:\Users\卿风.juliapro\JuliaPro_v1.1.1.1\packages\TimerOutputs\7zSea\src\TimerOutput.jl:198
(::getfield(Main, Symbol("##9#15")))(::TrackedArray{…,Array{Float32,4}}) at cifar10.jl:15
applychain(::Tuple{getfield(Main, Symbol("##9#15")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##10#16")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##11#17")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##12#18")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##13#19")),getfield(Main, Symbol("##14#20")),Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}},Dropout{Float64},Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}},Dropout{Float64},Dense{typeof(identity),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}},typeof(softmax)}, ::TrackedArray{…,Array{Float32,4}}) at basic.jl:31
applychain(::Tuple{BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##9#15")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##10#16")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##11#17")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},getfield(Main, Symbol("##12#18")),Conv{2,2,typeof(relu),TrackedArray{…,Array{Float32,4}},TrackedArray{…,Array{Float32,1}}},BatchNorm{typeof(identity),TrackedArray{…,Array{Float32,1}},Array{Float32,1},Float32},…