Skip to content

Instantly share code, notes, and snippets.

@eileen-code4fun
Created May 26, 2021 12:40
Show Gist options
  • Save eileen-code4fun/a81c8b65981c89c5f684344a527995f7 to your computer and use it in GitHub Desktop.
Save eileen-code4fun/a81c8b65981c89c5f684344a527995f7 to your computer and use it in GitHub Desktop.
CIFAR10 Arg
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--epochs', dest='epochs', type=int, default=5)
args = parser.parse_args()
# Refer to the argument as args.epochs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment