I revise the code to run with tf15. And when I run Complex_vanilla model in folder BiLSTM, the program is stuck in and can not continue to run:
def feed_neural_work(self):
self.cell = URNNCell(num_units = self.max_input_left, num_in = self.embedding_size)
outputs = tf.nn.dynamic_rnn(self.cell,self.embedded_chars_q,dtype=tf.float32)
I also revise the code urnn_cell.py:
class URNNCell(tf.nn.rnn_cell.RNNCell):
"""The most basic URNN cell.
Args:
num_units (int): The number of units in the LSTM cell, hidden layer size.
num_in: Input vector size, input layer size.
"""
def init(self, num_units, num_in, reuse=None):
super(URNNCell, self).init()
I revise the code to run with tf15. And when I run Complex_vanilla model in folder BiLSTM, the program is stuck in and can not continue to run: def feed_neural_work(self): self.cell = URNNCell(num_units = self.max_input_left, num_in = self.embedding_size) outputs = tf.nn.dynamic_rnn(self.cell,self.embedded_chars_q,dtype=tf.float32)
I also revise the code urnn_cell.py: class URNNCell(tf.nn.rnn_cell.RNNCell): """The most basic URNN cell. Args: num_units (int): The number of units in the LSTM cell, hidden layer size. num_in: Input vector size, input layer size. """ def init(self, num_units, num_in, reuse=None): super(URNNCell, self).init()