This is an official implementation of the paper Numerical reliability of nonsmooth autodiff : a MaxPool case study. Please cite the paper and star this repo if you find this useful. Thanks!
https://arxiv.org/abs/2401.02736
- pytorch
- torchvision
- optuna
- 16-bit plot: Notebook
- 32-bit plot: Notebook
- Mixed precision ImageNet: Notebook
- Threshold analysis: Notebook
- Volume estimation: Notebook
Execute the command below for experiments in Section 4.2:
python train_with_best_lr.py --network [NETWORK] --dataset [DATASET] --batch_norm [BATCH_NORM] --epochs [EPOCHS]with [NETWORK] = mnist, vgg11 or resnet18 , [DATASET] = mnist, cifar10 or svhn and [BATCH_NORM] = True or False
Example:
python train_with_best_lr.py --network resnet18 --dataset cifar10 --batch_norm True --epochs 200 To run the additional experiments:
python train_with_best_lr.py --network [NETWORK] --dataset[DATASET] --batch_norm [BATCH_NORM] --epochs 200To run the imagenet experiments:
python train_imagenet.py --dist-url 'tcp://127.0.0.1:9002' --dist-backend 'nccl' --maxpool [BETA] --multiprocessing-distributed --world-size 1 --rank 0 '{[IMAGENET_FOLDER_PATH]}'