add zit_cumulative
This commit is contained in:
@@ -23,6 +23,7 @@ Base.@kwdef mutable struct kfn_1 <: knowledgeFn
|
||||
learningStage::Union{AbstractArray, Nothing} = nothing # 0 inference, 1 start, 2 during, 3 end learning
|
||||
inputSize::Union{AbstractArray, Nothing} = nothing
|
||||
zit::Union{AbstractArray, Nothing} = nothing # 3D activation matrix
|
||||
zit_cumulative::Union{AbstractArray, Nothing} = nothing
|
||||
modelError::Union{AbstractArray, Nothing} = nothing # store RSNN error
|
||||
outputError::Union{AbstractArray, Nothing} = nothing # store output neurons error
|
||||
|
||||
@@ -175,6 +176,7 @@ function kfn_1(params::Dict; device=cpu)
|
||||
|
||||
# activation matrix
|
||||
kfn.zit = zeros(row, col, batch) |> device
|
||||
kfn.zit_cumulative = (similar(kfn.zit) .= 0) |> device
|
||||
kfn.modelError = zeros(1) |> device
|
||||
|
||||
# ---------------------------------------------------------------------------- #
|
||||
|
||||
Reference in New Issue
Block a user