when i use
next_token, logit, state, done = generate_next_token(
decoder=model.decoder,
context=context,
next_token=next_token,
done=done,
state=state,
temperature=temperature
)
I pass the test, but it return this problem
but beside that, everything else work fine, but when I use decoder
next_token, logit, state, done = generate_next_token(
decoder=decoder,
context=context,
next_token=next_token,
done=done,
state=state,
temperature=temperature
)
that cell run and everything below work fine too, only the
w1_unittest.test_translate(translate, trained_translator)
return fails, why is that