Skip to content

Commit

Permalink
install torchmetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Feb 28, 2022
1 parent 362b5f8 commit 1f4b2ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions templates/pytorch_lightning/submit_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ grid run \
--framework lightning \
--gpus 2 \
tune_classification_basic.py \
--learning_rate "uniform(1e-5, 1e-1, 5)" \
--batch_size "[64, 128, 256]"
--learning_rate "[0.0001, 0.0005, 0.001, 0.005, 0.01, 0.05)" \
--batch_size "[64, 128, 256]"\
--epochs 20
5 changes: 4 additions & 1 deletion templates/pytorch_lightning/tune_classification_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import torch
from torch.utils.data import DataLoader
import torchmetrics
from torchvision import transforms
from torchvision import datasets
from torch.utils.data.dataset import random_split
Expand All @@ -22,6 +21,10 @@ def install(package):

install("torchmetrics")


import torchmetrics


# Argparse helper
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

Expand Down

0 comments on commit 1f4b2ed

Please sign in to comment.