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

I am running test under : https://github.com/pytorch/examples/tree/main/imagenet Does the main.py support FP16(amp)?like arguments: --amp Thx

image
feature_request
training

I'm trying to use this code as a starting point for building GANs from my own image data-- 512x512 grayscale images. If I change any of the default arguments (e.g....

vision

Currently, ``` total ```(https://github.com/pytorch/examples/blob/main/imagenet/main.py#L419) is at cpu but it must be CUDA to compute ``` dist.all_reduce() ```. Otherwise it will raise a ``` RuntimeError: Tensors must be CUDA and dense...

cla signed

Currently, ```total```(https://github.com/pytorch/examples/blob/main/imagenet/main.py#L419) is at cpu but it must be CUDA to compute ```dist.all_reduce()```. Otherwise it will raise a ```RuntimeError: Tensors must be CUDA and dense```

cla signed

Your issue may already be reported! Please search on the [issue tracker](https://github.com/pytorch/serve/examples) before creating one. ## Context th.multiprocessing seems to not send tensor data to spawned processes on my setup....

bug
distributed

Following the discussions in #995 and #862, This PR adds a small usage example into the ImageNet README. One note, however, is that specifying ```--gpu``` will trigger the print in...

cla signed

Added mps device to some networks

cla signed

This example shows training a HF T5 model with FSDP to be used with its [tutorial](https://github.com/pytorch/tutorials/pull/1959#discussion_r913870745)

cla signed
distributed
new example
training

### Description Let's use modern style for modern code. These changes remove python 2 syntax all over the place in favor of modern python 3 syntax first released in 2008....