Skip to content

[c10d] Remove deprecated use of torch.LongTensor, torch.ByteTensor#55861

Closed
rohan-varma wants to merge 4 commits intogh/rohan-varma/288/basefrom
gh/rohan-varma/288/head
Closed

[c10d] Remove deprecated use of torch.LongTensor, torch.ByteTensor#55861
rohan-varma wants to merge 4 commits intogh/rohan-varma/288/basefrom
gh/rohan-varma/288/head

Conversation

@rohan-varma
Copy link
Copy Markdown
Contributor

@rohan-varma rohan-varma commented Apr 13, 2021

Stack from ghstack:

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.

Differential Revision: D27726600

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.

Differential Revision: [D27726600](https://our.internmc.facebook.com/intern/diff/D27726600/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Apr 13, 2021

💊 CI failures summary and remediations

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


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

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.

@facebook-github-bot facebook-github-bot added oncall: distributed Add this issue/PR to distributed oncall triage queue cla signed labels Apr 13, 2021
rohan-varma added a commit that referenced this pull request Apr 13, 2021
APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.

Differential Revision: [D27726600](https://our.internmc.facebook.com/intern/diff/D27726600/)

ghstack-source-id: 126357498
Pull Request resolved: #55861
…teTensor"

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.

Differential Revision: [D27726600](https://our.internmc.facebook.com/intern/diff/D27726600/)

[ghstack-poisoned]
…teTensor"

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.

Differential Revision: [D27726600](https://our.internmc.facebook.com/intern/diff/D27726600/)

[ghstack-poisoned]
…teTensor"

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.

Differential Revision: [D27726600](https://our.internmc.facebook.com/intern/diff/D27726600/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Apr 16, 2021
Pull Request resolved: #55861

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.
ghstack-source-id: 126777875

Differential Revision: [D27726600](https://our.internmc.facebook.com/intern/diff/D27726600/)
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in ce05b7a.

@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/288/head branch April 22, 2021 14:16
krshrimali pushed a commit to krshrimali/pytorch that referenced this pull request May 19, 2021
…ytorch#55861)

Summary:
Pull Request resolved: pytorch#55861

APIs such as torch.LongTensor and torch.ByteTensor are deprecated and
the recommended API is torch.tensor(args, dtype=...). Use this API in
distributed_c10d.
ghstack-source-id: 126777875

Test Plan: CI

Reviewed By: pbelevich

Differential Revision: D27726600

fbshipit-source-id: 07eb8168d93697593589002c93c3903ce29431ef
wayi1 pushed a commit that referenced this pull request Sep 27, 2021
#Closes: #65696

The bug is introduced in #55861, and it causes 100X slowdown since 1.9.

Differential Revision: [D31219794](https://our.internmc.facebook.com/intern/diff/D31219794/)

[ghstack-poisoned]
wayi1 pushed a commit that referenced this pull request Sep 27, 2021
#Closes: #65696

The bug is introduced in #55861, and it causes 100X slowdown since 1.9.

Differential Revision: [D31219794](https://our.internmc.facebook.com/intern/diff/D31219794/)

ghstack-source-id: 139128267
Pull Request resolved: #65721
facebook-github-bot pushed a commit that referenced this pull request Sep 28, 2021
Summary:
Pull Request resolved: #65721

#Closes: #65696

The bug is introduced in #55861, and it causes 100X slowdown since 1.9.
ghstack-source-id: 139128267

Test Plan:
Performance test:
```
import time

from torch.distributed.distributed_c10d import _object_to_tensor

start = time.time()
_object_to_tensor("x" * 50_000_000)
print("Time:", time.time() - start)
```

Reviewed By: rohan-varma

Differential Revision: D31219794

fbshipit-source-id: 1abec38f9d51361c1eab6ad5efd87b589322e208
malfet pushed a commit to malfet/pytorch that referenced this pull request Sep 29, 2021
Summary:
Pull Request resolved: pytorch#65721

#Closes: pytorch#65696

The bug is introduced in pytorch#55861, and it causes 100X slowdown since 1.9.
ghstack-source-id: 139128267

Test Plan:
Performance test:
```
import time

from torch.distributed.distributed_c10d import _object_to_tensor

start = time.time()
_object_to_tensor("x" * 50_000_000)
print("Time:", time.time() - start)
```

Reviewed By: rohan-varma

Differential Revision: D31219794

fbshipit-source-id: 1abec38f9d51361c1eab6ad5efd87b589322e208
malfet added a commit that referenced this pull request Sep 29, 2021
Summary:
Pull Request resolved: #65721

#Closes: #65696

The bug is introduced in #55861, and it causes 100X slowdown since 1.9.
ghstack-source-id: 139128267

Test Plan:
Performance test:
```
import time

from torch.distributed.distributed_c10d import _object_to_tensor

start = time.time()
_object_to_tensor("x" * 50_000_000)
print("Time:", time.time() - start)
```

Reviewed By: rohan-varma

Differential Revision: D31219794

fbshipit-source-id: 1abec38f9d51361c1eab6ad5efd87b589322e208

Co-authored-by: Yi Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: distributed Add this issue/PR to distributed oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants