Closed wangbofan closed 9 months ago
This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。
This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。
你好,请问你的问题解决了吗,我也遇到这个问题了
请提出你的问题
import paddle from paddlenlp.transformers import AlbertModel, AlbertTokenizer
tokenizer = AlbertTokenizer.from_pretrained('albert-base-v1') model = AlbertModel.from_pretrained('albert-base-v1')
inputs = tokenizer("Welcome to use PaddlePaddle and PaddleNLP!i like ball") inputs = {k:paddle.to_tensor([v]) for (k, v) in inputs.items()} output = model(**inputs,return_dict=True) output ....................29857466, -0.08089331]]), hidden_states=None, attentions=None) hidden_states和hidden_states一直显示为None