Skip to content

Commit

Permalink
Update reversible_embedding.py (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrazyT authored Mar 4, 2024
1 parent a5e832c commit bde20e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_nlp/layers/modeling/reversible_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ReversibleEmbedding(keras.layers.Embedding):
# Embed tokens to shape `(batch_size, seq_length, hidden_dim)`.
hidden_states = embedding(token_ids)
# Project hidden states to shape `(batch_size, seq_length, vocab_size)`.
logits = embedding(hidden_state, reverse=True)
logits = embedding(hidden_states, reverse=True)
```
References:
Expand Down

0 comments on commit bde20e9

Please sign in to comment.