Skip to content

Commit

Permalink
Update embedding.py (keras-team#20179)
Browse files Browse the repository at this point in the history
Change from positive to nonnegative.
  • Loading branch information
sachinprasadhs authored Aug 29, 2024
1 parent 19ba3d1 commit 8f6d715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras/src/layers/core/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

@keras_export("keras.layers.Embedding")
class Embedding(Layer):
"""Turns positive integers (indexes) into dense vectors of fixed size.
"""Turns nonnegative integers (indexes) into dense vectors of fixed size.
e.g. `[[4], [20]] -> [[0.25, 0.1], [0.6, -0.2]]`
This layer can only be used on positive integer inputs of a fixed range.
This layer can only be used on nonnegative integer inputs of a fixed range.
Example:
Expand Down

0 comments on commit 8f6d715

Please sign in to comment.