Skip to content

Instantly share code, notes, and snippets.

@kadlugan
kadlugan / capsule_networks.py
Created Nov 21, 2017 — forked from kendricktan/capsule_networks.py
Clean Code for Capsule Networks
View capsule_networks.py
"""
Dynamic Routing Between Capsules
https://arxiv.org/abs/1710.09829
"""
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.transforms as transforms
@kadlugan
kadlugan / tmux.conf
Created Jun 6, 2017 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000