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
repr of device is broken #48585
Comments
confirmed on master. |
also a regression from 1.7.0. |
I can't reproduce it in a local build but the nightlies do show the problem. |
Can I work on it and try to give a fix? |
@sparkingdark please feel free to work on any open issue that's unassigned. In this case it's a high-prio regression, so there's some time pressure, which means someone else may jump in and fix it. If you're new to PyTorch development, I'd usually recommend to pick issues where it's clear what to do and that haven't moved in say a week or two. |
okay I try to do my best and I am new to pytorch development can you tell me how to getting started actually I was looking for good first issue but all of them are taken that's why i am now searching above that. @rgommers |
hey i need some help @rgommers can you tell me how to compile and install the pytorch 1.8.1.8.0a0 is it on the developer branch. |
@sparkingdark Have a look at https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md#developing-pytorch |
Yeah I am new to pytorch development and try to do it,is their any
community channels available for pytorch I can join ?
…On Tue, 1 Dec 2020, 20:19 Ralf Gommers, ***@***.***> wrote:
@sparkingdark <https://github.com/sparkingdark> please feel free to work
on any open issue that's unassigned. In this case it's a high-prio
regression, so there's some time pressure, which means someone else may
jump in and fix it. If you're new to PyTorch development, I'd usually
recommend to pick issues where it's clear what to do and that haven't moved
in say a week or two.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48585 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7XHCDX5RENFMP6BL6W5PTSST7BFANCNFSM4UHWC4SA>
.
|
https://discuss.pytorch.org/. A word of advice though: please do your homework first, like searching for the available information on a topic, and then ask a specific question when you do get stuck. That makes it much more likely someone will answer your question. |
Yeah will do. Thanks for sharing.
…On Wed, 2 Dec 2020, 17:44 Ralf Gommers, ***@***.***> wrote:
Yeah I am new to pytorch development and try to do it,is their any
community channels available for pytorch I can join ?
https://discuss.pytorch.org/. A word of advice though: please do your
homework first, like searching for the available information on a topic,
and then ask a specific question when you do get stuck. That makes it much
more likely someone will answer your question.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48585 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7XHCATOOVJJAOMFIFIM7TSSYVRBANCNFSM4UHWC4SA>
.
|
Summary: Fixes pytorch#48585 In the following commit pytorch@4c9eb57, type of `DeviceIndex` was changed from `uint16_t` to `uint8_t`. `uint8_t` is treated as ascii chars by std::cout and other stream operators. Hence the broken `repr` Stackoverflow Reference: https://stackoverflow.com/questions/19562103/uint8-t-cant-be-printed-with-cout Pull Request resolved: pytorch#48655 Reviewed By: bdhirsh Differential Revision: D25272289 Pulled By: ezyang fbshipit-source-id: a1549f5f8d417138cf38795e4c373e3a487d3691
🐛 Bug
The
repr
of device instances is broken - the index for GPUs is missing, as is a closing bracket. A repr is supposed to be able to beeval
-ed (not that that's a good idea typically, but there's no reason for it not being true here).To Reproduce
Expected behavior
Repr should be, in the above case,
"device(type='cuda', index=0)"
Environment
cc @ezyang @gchanan @zou3519 @bdhirsh
The text was updated successfully, but these errors were encountered: