Skip to content

Instantly share code, notes, and snippets.

View mpagli's full-sized avatar

Matteo Pagliardini mpagli

View GitHub Profile
import tensorflow as tf
import numpy as np
from tensorflow.python.ops import rnn_cell, rnn
session = tf.InteractiveSession()
batch_size = 3
max_seq_length = 6 #parameter for BPTT, the gradients propagate no further than 6 time steps
hiddenSize = 2
outSize = 4 #4 possible output labels