Skip to content

Instantly share code, notes, and snippets.

@omarsar
Last active December 29, 2019 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarsar/663773c96eefdc77bfa8f0809e230e39 to your computer and use it in GitHub Desktop.
Save omarsar/663773c96eefdc77bfa8f0809e230e39 to your computer and use it in GitHub Desktop.
## Import the usual libraries
import torch
import torchvision
import torch.nn as nn
from torchvision import datasets, models, transforms
import os
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
## print out the pytorch version used (1.31 at the time of this tutorial)
print(torch.__version__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment