Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: '>' not supported between instances of 'NoneType' and 'int' #30

Open
SeekPoint opened this issue Mar 2, 2018 · 0 comments
Open

Comments

@SeekPoint
Copy link

Number of instances in devDataStream: 16855
Number of batches in devDataStream: 57
WARNING:tensorflow:From ///BiMPM_tf1.5/src/match_utils.py:150: calling reduce_max (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
WARNING:tensorflow:From ///BiMPM_tf1.5/src/match_utils.py:151: calling reduce_mean (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
WARNING:tensorflow:From ///BiMPM_tf1.5/src/SentenceMatchModelGraph.py:156: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:

Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.

See tf.nn.softmax_cross_entropy_with_logits_v2.

Traceback (most recent call last):
File "src/SentenceMatchTrainer.py", line 296, in
main(FLAGS)
File "src/SentenceMatchTrainer.py", line 217, in main
is_training=True, options=FLAGS, global_step=global_step)
File "///BiMPM_tf1.5/src/SentenceMatchModelGraph.py", line 10, in init
self.create_model_graph(num_classes, word_vocab, char_vocab, is_training, global_step=global_step)
File "///BiMPM_tf1.5/src/SentenceMatchModelGraph.py", line 166, in create_model_graph
l2_loss = tf.add_n([tf.nn.l2_loss(v) for v in tvars if v.get_shape().ndims > 1])
File "//BiMPM_tf1.5/src/SentenceMatchModelGraph.py", line 166, in
l2_loss = tf.add_n([tf.nn.l2_loss(v) for v in tvars if v.get_shape().ndims > 1])
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant