This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |