-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I have seen that your function only seems to update dW for the weights but not for all the other parameters. Is it what you intented to do?
function grad_apply_momentum!(crbm::ConditionalRBM{T}, X::Mat{T},
dtheta::Tuple, ctx::Dict) where T
dW, dA, dB, db, dc = dtheta
momentum = @get(ctx, :momentum, 0.9)
dW_prev = @get_array(ctx, :dW_prev, size(dW), zeros(T, size(dW)))
# same as: dW += momentum * dW_prev
axpy!(momentum, dW_prev, dW)
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels