Skip to content

Instantly share code, notes, and snippets.

View reuelrds's full-sized avatar
🎯
Focusing

Reuel D'silva reuelrds

🎯
Focusing
  • Baton Rouge
View GitHub Profile
@reuelrds
reuelrds / weight_init.py
Created October 26, 2019 19:38 — forked from jeasinema/weight_init.py
A simple script for parameter initialization for PyTorch
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
import torch
import torch.nn as nn
import torch.nn.init as init
def weight_init(m):
'''