File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def embedding(
178
178
with embedding size.
179
179
180
180
Note:
181
- The id in :attr:`x` must satisfy :math:`0 =< id < weight.shape[0]` ,
181
+ The id in :attr:`x` must satisfy :math:`0 <= id < weight.shape[0]` ,
182
182
otherwise the program will throw an exception and exit.
183
183
184
184
.. code-block:: text
Original file line number Diff line number Diff line change @@ -1680,7 +1680,7 @@ class Embedding(Layer):
1680
1680
last dimension of the input Tensor shape.
1681
1681
1682
1682
Note:
1683
- The id in :attr:`x` must satisfy :math:`0 =< id < num_embeddings` ,
1683
+ The id in :attr:`x` must satisfy :math:`0 <= id < num_embeddings` ,
1684
1684
otherwise the program will throw an exception and exit.
1685
1685
1686
1686
.. code-block:: text
Original file line number Diff line number Diff line change @@ -3493,7 +3493,7 @@ def embedding(
3493
3493
The shape of output Tensor is generated by appending an emb_size dimension to the
3494
3494
last dimension of the input Tensor shape.
3495
3495
3496
- **Note:** The id in :attr:`input` must satisfy :math:`0 =< id < size[0]` ,
3496
+ **Note:** The id in :attr:`input` must satisfy :math:`0 <= id < size[0]` ,
3497
3497
otherwise the program will throw an exception and exit.
3498
3498
3499
3499
.. code-block:: text
@@ -3649,7 +3649,7 @@ def sparse_embedding(
3649
3649
The shape of output Tensor is generated by appending an emb_size dimension to the
3650
3650
last dimension of the input Tensor shape.
3651
3651
3652
- **Note:** The id in :attr:`input` must satisfy :math:`0 =< id < size[0]` , otherwise
3652
+ **Note:** The id in :attr:`input` must satisfy :math:`0 <= id < size[0]` , otherwise
3653
3653
the program will throw an exception and exit.
3654
3654
3655
3655
.. code-block:: text
You can’t perform that action at this time.
0 commit comments