Skip to content

[1.8.1] [nn] nn.Embedding : padding_idx doc update (#53809)#54026

Merged
malfet merged 1 commit intopytorch:release/1.8from
malfet:malfet/cp-53809
Mar 16, 2021
Merged

[1.8.1] [nn] nn.Embedding : padding_idx doc update (#53809)#54026
malfet merged 1 commit intopytorch:release/1.8from
malfet:malfet/cp-53809

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Mar 15, 2021

Summary:
Follow-up of #53447

Reference: #53447 (comment)

Pull Request resolved: #53809

Reviewed By: bdhirsh

Differential Revision: D27049643

Pulled By: jbschlosser

fbshipit-source-id: 623a2a254783b86391dc2b0777b688506adb4c0e

Summary:
Follow-up of pytorch#53447

Reference: pytorch#53447 (comment)

Pull Request resolved: pytorch#53809

Reviewed By: bdhirsh

Differential Revision: D27049643

Pulled By: jbschlosser

fbshipit-source-id: 623a2a254783b86391dc2b0777b688506adb4c0e
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Mar 15, 2021

💊 CI failures summary and remediations

As of commit aae099e (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 1/2 non-scanned failure(s)

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_xla_linux_bionic_py3_6_clang9_test (1/1)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Mar 15 22:00:59 AssertionError: False is not true
Mar 15 22:00:59   test_where_scalar_valid_combination_xla_uint8 (__main__.TestTorchDeviceTypeXLA) ... ok (0.039s)
Mar 15 22:00:59 
Mar 15 22:00:59 ======================================================================
Mar 15 22:00:59 FAIL [0.002s]: test_pickle_gradscaler_xla (__main__.TestTorchDeviceTypeXLA)
Mar 15 22:00:59 ----------------------------------------------------------------------
Mar 15 22:00:59 Traceback (most recent call last):
Mar 15 22:00:59   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 290, in instantiated_test
Mar 15 22:00:59     result = test_fn(self, *args)
Mar 15 22:00:59   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 6172, in test_pickle_gradscaler
Mar 15 22:00:59     self.assertTrue(a.is_enabled() if torch.cuda.is_available() else not a.is_enabled())
Mar 15 22:00:59 AssertionError: False is not true
Mar 15 22:00:59 
Mar 15 22:00:59 ----------------------------------------------------------------------
Mar 15 22:00:59 Ran 244 tests in 164.240s
Mar 15 22:00:59 
Mar 15 22:00:59 FAILED (failures=1, skipped=140)
Mar 15 22:00:59 
Mar 15 22:00:59 Generating XML reports...
Mar 15 22:00:59 Generated XML report: test-reports/python-unittest/TEST-TestTorchDeviceTypeXLA-20210315215814.xml
Mar 15 22:00:59 + cleanup
Mar 15 22:00:59 + retcode=1

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@malfet malfet merged commit 264d0ec into pytorch:release/1.8 Mar 16, 2021
@malfet malfet deleted the malfet/cp-53809 branch March 16, 2021 18:44
facebook-github-bot pushed a commit that referenced this pull request Apr 21, 2021
…56065)

Summary:
Match updated `Embedding` docs from #54026 as closely as possible. Additionally, update the C++ side `Embedding` docs, since those were missed in the previous PR.

There are 6 (!) places for docs:
1. Python module form in `sparse.py` - includes an additional line about newly constructed `Embedding`s / `EmbeddingBag`s
2. Python `from_pretrained()` in `sparse.py` (refers back to module docs)
3. Python functional form in `functional.py`
4. C++ module options - includes an additional line about newly constructed `Embedding`s / `EmbeddingBag`s
5. C++ `from_pretrained()` options
6. C++ functional options

Pull Request resolved: #56065

Reviewed By: malfet

Differential Revision: D27908383

Pulled By: jbschlosser

fbshipit-source-id: c5891fed1c9d33b4b8cd63500a14c1a77d92cc78
krshrimali pushed a commit to krshrimali/pytorch that referenced this pull request May 19, 2021
…ytorch#56065)

Summary:
Match updated `Embedding` docs from pytorch#54026 as closely as possible. Additionally, update the C++ side `Embedding` docs, since those were missed in the previous PR.

There are 6 (!) places for docs:
1. Python module form in `sparse.py` - includes an additional line about newly constructed `Embedding`s / `EmbeddingBag`s
2. Python `from_pretrained()` in `sparse.py` (refers back to module docs)
3. Python functional form in `functional.py`
4. C++ module options - includes an additional line about newly constructed `Embedding`s / `EmbeddingBag`s
5. C++ `from_pretrained()` options
6. C++ functional options

Pull Request resolved: pytorch#56065

Reviewed By: malfet

Differential Revision: D27908383

Pulled By: jbschlosser

fbshipit-source-id: c5891fed1c9d33b4b8cd63500a14c1a77d92cc78
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…ytorch#56065)

Summary:
Match updated `Embedding` docs from pytorch#54026 as closely as possible. Additionally, update the C++ side `Embedding` docs, since those were missed in the previous PR.

There are 6 (!) places for docs:
1. Python module form in `sparse.py` - includes an additional line about newly constructed `Embedding`s / `EmbeddingBag`s
2. Python `from_pretrained()` in `sparse.py` (refers back to module docs)
3. Python functional form in `functional.py`
4. C++ module options - includes an additional line about newly constructed `Embedding`s / `EmbeddingBag`s
5. C++ `from_pretrained()` options
6. C++ functional options

Pull Request resolved: pytorch#56065

Reviewed By: malfet

Differential Revision: D27908383

Pulled By: jbschlosser

fbshipit-source-id: c5891fed1c9d33b4b8cd63500a14c1a77d92cc78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants