Skip to content

Instantly share code, notes, and snippets.

View dhcracchiolo's full-sized avatar

Dano Cracchiolo dhcracchiolo

View GitHub Profile
@devanshuDesai
devanshuDesai / mnist_dodgers.py
Last active March 14, 2023 19:13
A neural network written in PyTorch with > 99% accuracy on the MNIST dataset.
import torch
from torch import nn
from tqdm import tqdm_notebook
class CNN(nn.Module):
def __init__(self, input_size, num_classes):
"""
init convolution and activation layers
Args:
input_size: (1,28,28)