examples icon indicating copy to clipboard operation
examples copied to clipboard

A set of examples around pytorch in Vision, Text, Reinforcement Learning, etc.

Results 210 examples issues
Sort by recently updated
recently updated
newest added

## Context I am training a ResNet50 on ImageNet-1k using this [script](https://github.com/pytorch/examples/blob/2639cf050493df9d3cbf065d45e6025733add0f4/imagenet/main.py), it takes around 2 hours for one epoch and as I have to train for 90 epochs then...

### 🐛 Describe the bug I am testing the following example: https://github.com/pytorch/examples/blob/main/cpp/distributed/dist-mnist.cpp I get the following error: [ 50%] Building CXX object CMakeFiles/awcm.dir/xdist.cxx.o /home/alamj/TestCases/tests/xtorch/xdist/xdist.cxx:1:10: fatal error: c10d/ProcessGroupMPI.hpp: No such file...

Your issue may already be reported! Please search on the [issue tracker](https://github.com/pytorch/examples/issues) before creating one. ## Context * Pytorch version: 2.2.0 * Operating System and version: Ubuntu 20.04 ## Your...

A long long time ago, back in the days when n-gram modelling ruled, our LMs didn't carry context over from one sentence to another. In the current era of LLMs...

As this is (extremely useful!) example code, it should be as clean as possible. I'm looking at word_language_model/data.py and there are two areas where the clarity and speed could be...

Hi everyone, @svekars and I are looking to increase the number of new contributions to pytorch/examples, this might be especially interesting to you if you've never contributed to an open...

good first issue

## Context ![image](https://github.com/pytorch/examples/assets/7495155/79e09c30-a24b-456a-8550-86a43afb79d7) ## Failure Logs [if any] fatal: unable to access 'https://github.com/pytorch/examples.git/': The requested URL returned error: 403 Running post deployment cleanup jobs… 🗑️ /usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force...

There are bugs on env.state() since the current version of gym are having bugs with these examples. This commit is to solve it ## Description There are bugs on env.state()...

cla signed

Your issue may already be reported! Please search on the [issue tracker](https://github.com/pytorch/examples/issues) before creating one. ## Context * Pytorch version: * Operating System and version: Ubuntu 20 ## Your Environment...

The `accuracy()` function [here](https://github.com/pytorch/examples/blob/master/imagenet/main.py#L411) divides number of correct samples by the batch size. Then, the [top1 accuracy is updated](https://github.com/pytorch/examples/blob/master/imagenet/main.py#L340) with `AverageMeter`, and the `top1.avg` is returned. This is incorrect, since...

distributed