Skip to content

Instantly share code, notes, and snippets.

View zhaone's full-sized avatar
🎯
Focusing

ZhaoYi zhaone

🎯
Focusing
View GitHub Profile
@zhaone
zhaone / weight_init.py
Created July 1, 2020 08:50 — 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):
'''