forked from mindspore-Ecosystem/mindspore
!26704 Fix Embedding APi
Merge pull request !26704 from huangxinjing/code_docs_fix_embedding
This commit is contained in:
commit
5b4dfee77c
|
@ -487,7 +487,7 @@ class VocabEmbedding(Cell):
|
|||
|
||||
- **output** (Tensor) - The embedding vector for the input with shape (batch_size,
|
||||
seq_length, embedding_size).
|
||||
- **weight** (Tensor) - The embedding table with shape (vocab_size, embedding_size).
|
||||
- **embedding_table** (Tensor) - The embedding table with shape (vocab_size, embedding_size).
|
||||
|
||||
Raises:
|
||||
ValueError: If the parallel_config.vocab_emb_dp is True, the vocab size is not a multiple of
|
||||
|
|
Loading…
Reference in New Issue