![torch.one_hot causes multiple DeviceToHost transfers when input tensor is a cuda tensor · Issue #55579 · pytorch/pytorch · GitHub torch.one_hot causes multiple DeviceToHost transfers when input tensor is a cuda tensor · Issue #55579 · pytorch/pytorch · GitHub](https://user-images.githubusercontent.com/35972327/113955961-96451180-97d1-11eb-8e33-c5240f6494e1.png)
torch.one_hot causes multiple DeviceToHost transfers when input tensor is a cuda tensor · Issue #55579 · pytorch/pytorch · GitHub
![torch.nn.functional.one_hot で "RuntimeError: one_hot is only applicable to index tensor" したときの対処法 #Python - Qiita torch.nn.functional.one_hot で "RuntimeError: one_hot is only applicable to index tensor" したときの対処法 #Python - Qiita](https://qiita-user-contents.imgix.net/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fpublic%2Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png?ixlib=rb-4.0.0&w=1200&mark64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9dG9yY2gubm4uZnVuY3Rpb25hbC5vbmVfaG90JTIwJUUzJTgxJUE3JTIwJTIyUnVudGltZUVycm9yJTNBJTIwb25lX2hvdCUyMGlzJTIwb25seSUyMGFwcGxpY2FibGUlMjB0byUyMGluZGV4JTIwdGVuc29yJTIyJTIwJUUzJTgxJTk3JUUzJTgxJTlGJUUzJTgxJUE4JUUzJTgxJThEJUUzJTgxJUFFJUUyJTgwJUE2JnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1hMzIwZjI2YTQ0MjViNmY4M2I2ZDg2MGFhMzNiZGMyOA&mark-x=142&mark-y=112&blend64=aHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwMXRhcm9oJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0yZGFjY2Y5NTgxM2UzMTJmYmM1MDk3MzQxOGNkMGY2Mg&blend-x=142&blend-y=491&blend-mode=normal&s=66706a489487c8bf0e0fde1004d3e28b)
torch.nn.functional.one_hot で "RuntimeError: one_hot is only applicable to index tensor" したときの対処法 #Python - Qiita
![PyTorch's Scatter_() Function + One-Hot Encoding (A Visual Explanation) | by Dr. Abder-Rahman Ali | Medium PyTorch's Scatter_() Function + One-Hot Encoding (A Visual Explanation) | by Dr. Abder-Rahman Ali | Medium](https://miro.medium.com/v2/resize:fit:1400/1*M9bbQTFIqJfD397k56-Skw.png)
PyTorch's Scatter_() Function + One-Hot Encoding (A Visual Explanation) | by Dr. Abder-Rahman Ali | Medium
![What loss function should I use for multi-labeling without one-hot - Part 1 (2020) - fast.ai Course Forums What loss function should I use for multi-labeling without one-hot - Part 1 (2020) - fast.ai Course Forums](https://forums.fast.ai/uploads/default/original/3X/a/2/a270e4594416c70b4d819770a71b0f5f39365c6d.png)