pytorch-styleguide icon indicating copy to clipboard operation
pytorch-styleguide copied to clipboard

An unofficial styleguide and best practices summary for PyTorch

Results 8 pytorch-styleguide issues
Sort by recently updated
recently updated
newest added

```python def multi_gpu(model): device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') if device != torch.device('cpu') and torch.cuda.device_count() > 1: model = nn.DataParallel(model) print(f'Using {torch.cuda.device_count()} GPUs!') elif device == torch.device('cuda'): print(f'Using 1...

The style guide started as a small side project for personal use. We then started using it within our company. Now, I heard from friends that some of the largest...

I really enjoy this guide! However, I am not sure what the advantage of `prefetch_generator` is. It seems that DataLoader in pytorch has already supported prefetching. Thank you!

Hi Igor, First of all, thank you for the repo, super cool and very usefull. Hovewer, I am sorry but I have to say it, all the **examples in the...

I really appreciate your tutorial, it would be nice to have a complete example.

In opposite to what you say in the section > A nn.module can be used on input data in two ways whereas the latter one is commonly used for better...

Hi Team, I've been thinking about doing something like this and you guys already have a great head start. I'd love to be a collaborator or at least a regular...

After using the prefetch generator, the dataloader is not automatically released after each epoch under multi-gpu-DDP, resulting in a memory leak, has this been encountered by anyone?