Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 442 Bytes

README.md

File metadata and controls

17 lines (17 loc) · 442 Bytes

Synchronized BatchNorm in PyTorch 1.0

This GPU version is compatible with PyTorch 1.0. And, it is inspired by PyTorch-Encoding.

Installation

  1. PyTorch
  2. Synchronized BatchNorm PyTorch
bash compile.sh

Then, import synchronized batchnorm in your code as follows:

from syncbn import SyncBN

Demo

  1. CIFAR-10
python3 cifar10.py