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
But, the final output is 'tf.Tensor([], shape=(768, 0), dtype=float32)'
How to fetch the output correctly?
Another question is, could I get the K, V values of the last layer?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi, I am tring to get the outputs of the albert model given an input,
`
def load_pretrained_albert():
albert_model, tokenizer = load_pretrained_albert()
tokens = tokenizer.tokenize(u"你好世界")
token_ids = tokenizer.convert_tokens_to_ids(tokens)
print(token_ids)
print(albert_model(inputs=np.array([token_ids])))
`
But, the final output is 'tf.Tensor([], shape=(768, 0), dtype=float32)'
How to fetch the output correctly?
Another question is, could I get the K, V values of the last layer?
Thank you.
The text was updated successfully, but these errors were encountered: