Skip to content

Instantly share code, notes, and snippets.

View xumingze0308's full-sized avatar
🎯
Focusing

Mingze Xu xumingze0308

🎯
Focusing
View GitHub Profile
@xumingze0308
xumingze0308 / weight_init.py
Created February 22, 2020 02:32 — 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):
'''