Skip to content

Instantly share code, notes, and snippets.

@Deathmonster
Deathmonster / LSTMLayer.py
Created September 8, 2014 20:43
Simple RNN Example with Scan / For Loop Comparison
import theano
import theano.tensor as T
import numpy
import numpy.random as rng
import math
class LSTMLayer:
def __init__(self, inputSize, controllerSize, memorySize, outputSize, initialScale, useReluReadGate = True):