Skip to content

Instantly share code, notes, and snippets.

class ImprovedCatDogClassifier(nn.Module):
def __init__(self):
super(ImprovedCatDogClassifier, self).__init__()
# Convolutional layers with BatchNorm
self.conv1 = nn.Conv2d(1, 32, kernel_size=3, stride=1, padding=1)
self.bn1 = nn.BatchNorm2d(32)
self.conv2 = nn.Conv2d(32, 64, kernel_size=3, stride=1, padding=1)
self.bn2 = nn.BatchNorm2d(64)
We couldn’t find that file to show.
@leavism
leavism / install_dotfiles.sh
Created June 16, 2023 07:52
Install dot files in the home directory
git clone --bare https://github.com/leavism/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";