tutorials
tutorials copied to clipboard
PyTorch tutorials.
Fixes https://github.com/pytorch/pytorch/issues/113019 ## Description ## Checklist - [ ] The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER") - [ ] Only one issue...
script for updating metadata with computation times CUBLAS thing: https://github.com/pytorch/tutorials/actions/runs/7733311292/job/21085114058 ``` RuntimeError: Deterministic behavior was enabled with either `torch.use_deterministic_algorithms(True)` or `at::Context::setDeterministicAlgorithms(true)`, but this operation is not deterministic because it uses...
095 test
Testing whether torchao dependency breaks things for landing https://github.com/pytorch/tutorials/pull/2730
## Description Batch size (`bsz`) must be an `int`, not a `float`. This change fixes it, basically doing the same as in https://github.com/seba-1511/dist_tuto.pth/blob/a552567061a9985cdcfe72ecb9b47e4630d6a7fe/train_dist.py#L85 (the sample linked from the tutorial). ##...
I would like to suggest changing the labels in [Mask-RCNN tutorial](https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html) from `labels = torch.ones((num_objs,), dtype=torch.int64)` to the following: `label = torch.as_tensor(obj_ids, dtype=torch.int64)` that will work if there are more...
This issue is used by [pytorch-probot](https://github.com/pytorch/test-infra/torchci) to manage subscriptions to labels. To subscribe yourself to a label, add a line `* label @yourusername`, or add your username to an existing...
### Add Link https://pytorch.org/tutorials/intermediate/ensembling.html https://pytorch.org/docs/stable/notes/extending.func.html#defining-the-vmap-staticmethod ### Describe the bug ### 🐛 Describe the bug I want to use **vmap** to vectorize the **ensemble models** inherited from torch.autograd.Function. And torch.autograd.Function’s forward/backward...
Basically ['Loading a Torchscript Model in C++'](https://pytorch.org/tutorials/advanced/cpp_export.html#step-1-converting-your-pytorch-model-to-torch-script) shows the following snippet: ```c++ cmake_minimum_required(VERSION 3.0 FATAL_ERROR) project(custom_ops) find_package(Torch REQUIRED) add_executable(example-app example-app.cpp) target_link_libraries(example-app "${TORCH_LIBRARIES}") set_property(TARGET example-app PROPERTY CXX_STANDARD 14) ``` Whereas the...
Fixes https://github.com/pytorch/tutorials/issues/2687 ## Description 1. Fixed the unpack error 2. Add code for transferring data to the GPU ## Checklist - [x] The issue that is being fixed is referred...