Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Opset15][Spec] Add and update specifications for EmbeddingBag ops #25100

Merged
merged 8 commits into from
Jun 28, 2024

Conversation

mmikolajcz
Copy link
Contributor

Details:

  • Add specification for EmbeddingBagOffsets-15 and EmbeddingBagPacked-15
  • Remove dead links and improve specification of EmbeddingBagOffsetsSum-3 and EmbeddingBagPackedSum-3

Tickets:

  • 141862
  • 141863

@mmikolajcz mmikolajcz added the category: Opset OpenVINO Opset label Jun 18, 2024
@mmikolajcz mmikolajcz requested a review from mitruska June 18, 2024 09:55
@mmikolajcz mmikolajcz requested a review from a team as a code owner June 18, 2024 09:55
@mmikolajcz mmikolajcz requested review from akopytko and removed request for a team June 18, 2024 09:55
@github-actions github-actions bot added the category: docs OpenVINO documentation label Jun 18, 2024
* **1**: ``emb_table`` tensor containing the embedding lookup table of the module of shape ``[num_emb, emb_dim1, emb_dim2, ...]`` and of type *T*. **Required.**
* **2**: ``indices`` tensor of shape ``[num_indices]`` and of type *T_IND*. **Required.**
* **3**: ``offsets`` tensor of shape ``[batch]`` and of type *T_IND* containing the starting index positions of each "bag" in ``indices``. Maximum value of offsets cannot be greater than length of ``indices``. **Required.**
* **4**: ``default_index`` scalar of type *T_IND* containing default index in embedding table to fill empty "bags". If set to ``-1`` or not provided, empty "bags" are filled with zeros. Reverse indexing using negative values is not supported. **Optional.**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage of -1 is not an ideal solution, but as we discussed it's aligned with current behavior of some plugins and it resolves the empty bags issues. Although the main reason of adding v15 version was enablement of the "mean" mode, great to see the clarification of the default_index behavior as well.

@mmikolajcz mmikolajcz requested a review from mitruska June 25, 2024 09:39
@mmikolajcz mmikolajcz requested a review from mitruska June 27, 2024 13:44
@mlukasze mlukasze added this pull request to the merge queue Jun 28, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jun 28, 2024
…25100)

### Details:
- *Add specification for EmbeddingBagOffsets-15 and
EmbeddingBagPacked-15*
- *Remove dead links and improve specification of
EmbeddingBagOffsetsSum-3 and EmbeddingBagPackedSum-3*

### Tickets:
 - *141862*
 - *141863*
Merged via the queue into openvinotoolkit:master with commit 0f2b44b Jun 28, 2024
85 checks passed
AsyaPronina pushed a commit to AsyaPronina/openvino that referenced this pull request Jul 1, 2024
…penvinotoolkit#25100)

### Details:
- *Add specification for EmbeddingBagOffsets-15 and
EmbeddingBagPacked-15*
- *Remove dead links and improve specification of
EmbeddingBagOffsetsSum-3 and EmbeddingBagPackedSum-3*

### Tickets:
 - *141862*
 - *141863*
AsyaPronina pushed a commit to AsyaPronina/openvino that referenced this pull request Jul 1, 2024
…penvinotoolkit#25100)

### Details:
- *Add specification for EmbeddingBagOffsets-15 and
EmbeddingBagPacked-15*
- *Remove dead links and improve specification of
EmbeddingBagOffsetsSum-3 and EmbeddingBagPackedSum-3*

### Tickets:
 - *141862*
 - *141863*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: docs OpenVINO documentation category: Opset OpenVINO Opset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants