Skip to content

Instantly share code, notes, and snippets.

@riveSunder
riveSunder / gol_pytorch_benchmarks.ipynb
Created November 5, 2020 04:55
Speeding Up Conway's Game of Life in PyTorch.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import argparse
# idioms and their meanings are from https://en.wikipedia.org/wiki/English-language_idioms
# you'll need hugging face transformers, numpy, pytorch, and matplotlib for this demo
import numpy as np
from transformers import pipeline, AutoTokenizer, AutoModel
import matplotlib.pyplot as plt