Skip to content

Instantly share code, notes, and snippets.

View mibaumgartner's full-sized avatar
🐺
Teaching my computer new tricks.

Michael Baumgartner mibaumgartner

🐺
Teaching my computer new tricks.
View GitHub Profile
@mibaumgartner
mibaumgartner / drive-format-ubuntu.md
Created March 22, 2019 21:22 — forked from keithmorris/drive-format-ubuntu.md
Partition, format, and mount a drive on Ubuntu
@mibaumgartner
mibaumgartner / Example.py
Last active March 1, 2019 10:26
3d pool examples
set_seed = 0
DEVICE = 'cuda'
import torch
torch.manual_seed(set_seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
import torch.nn as nn
import random
@mibaumgartner
mibaumgartner / 2d ResNet torchvision
Last active February 28, 2019 13:58
Generic example 3d ResNet
set_seed = 0
DEVICE = 'cuda'
import torch
torch.manual_seed(set_seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
import torch.nn as nn
import torch.nn.functional as F