You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migration to tensorflow 1
I changed the concat from (1,xxx) to (xxx,1)
I changed the tf.nn.rnn_ to tf.contrib.rnn
But now I have this error in
File "train.py", line 161, in
train_cnn_rnn()
File "train.py", line 60, in train_cnn_rnn
l2_reg_lambda = params['l2_reg_lambda'])
File "/home/administrator/django/demo/tempo/multi-class-text-classification-cnn-rnn/text_cnn_rnn.py", line 58, in init
inputs = [tf.squeeze(input_, [1]) for input_ in tf.split(1, reduced, pooled_concat)]
File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/array_ops.py", line 1203, in split
num = size_splits_shape.dims[0]
IndexError: list index out of range
Any ideas?
The text was updated successfully, but these errors were encountered:
I did this change in line 85 of text_cnn_rnn.py
losses = tf.nn.softmax_cross_entropy_with_logits(labels = self.input_y, logits = self.scores) # only named arguments accepted
Migration to tensorflow 1
I changed the concat from (1,xxx) to (xxx,1)
I changed the tf.nn.rnn_ to tf.contrib.rnn
But now I have this error in
File "train.py", line 161, in
train_cnn_rnn()
File "train.py", line 60, in train_cnn_rnn
l2_reg_lambda = params['l2_reg_lambda'])
File "/home/administrator/django/demo/tempo/multi-class-text-classification-cnn-rnn/text_cnn_rnn.py", line 58, in init
inputs = [tf.squeeze(input_, [1]) for input_ in tf.split(1, reduced, pooled_concat)]
File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/array_ops.py", line 1203, in split
num = size_splits_shape.dims[0]
IndexError: list index out of range
Any ideas?
The text was updated successfully, but these errors were encountered: