iioSnail commited on
Commit
e640272
1 Parent(s): 370bc94

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -57,6 +57,8 @@ print(tokenizer.decode(logits.argmax(-1)[0, 1:-1]))
57
  tokenizer.decode(logits.argmax(-1)[0, 1:-1])
58
  ```
59
 
 
 
60
  # 常见问题
61
 
62
  1. 网络问题,例如:`Connection Error`
 
57
  tokenizer.decode(logits.argmax(-1)[0, 1:-1])
58
  ```
59
 
60
+ > 获取hidden_state的方法:`model.bert(**inputs).last_hidden_state`
61
+
62
  # 常见问题
63
 
64
  1. 网络问题,例如:`Connection Error`