Skip to content

Instantly share code, notes, and snippets.

View Wizaron's full-sized avatar

Onur Kaplan Wizaron

  • Miletos
  • Istanbul
View GitHub Profile
@Wizaron
Wizaron / renet_sru.py
Last active August 6, 2018 21:06
ReNet with Simple Recurrent Unit (https://arxiv.org/pdf/1505.00393.pdf, https://arxiv.org/pdf/1709.02755.pdf) in PyTorch 0.4.0
import torch
from torch import nn
from torch.nn import functional as F
class ReNetSRU(nn.Module):
r"""ReNet with Simple Recurrent Unit
Simple Recurrent Unit is defined in 'TRAINING RNNS AS FAST AS CNNS'