Skip to content

Instantly share code, notes, and snippets.

# Working example for my blog post at:
import functools
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def doublewrap(function):
A decorator decorator, allowing to use the decorator to be used without
View gist:a9e424dd9877cdfe239cc279550fb2ba
This is a batched LSTM forward and backward pass
import numpy as np
import code
class LSTM:
def init(input_size, hidden_size, fancy_forget_bias_init = 3):