You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the lambda function _step0 you defined and the codes in _step function, I see that ct_ means averaged context produced by attention mechanism and ctx_ means context. However, this function returned ctx_ at line 337 as follows:
rval = [h, c, alpha, ctx_, pstate_, pctx_, i, f, o, preact, alpha_pre]+pctx_list
return rval
I suggest you to make it clear. Thanks!
The text was updated successfully, but these errors were encountered:
I was confused by
lstm_cond_layer._step()
function in filemodel_attention.py
line296
:From the
lambda
function_step0
you defined and the codes in_step
function, I see thatct_
means averaged context produced by attention mechanism andctx_
means context. However, this function returnedctx_
at line337
as follows:The text was updated successfully, but these errors were encountered: