解决方法:
查了很多都说要重新装TensorFlow,然后找到了下面的解决方法:
You just have to update all the line with tf.concat
for example
net = tf.concat(3, [branch_0, branch_1, branch_2, branch_3])
should be changed to
net = tf.concat([branch_0, branch_1, branch_2, branch_3], 3)
According to the tensorflow 1.0.0 release notes,
tf.mul
,tf.sub
andtf.neg
are deprecated in favor oftf.multiply
,tf.subtract
andtf.negative
.
You'll need to replace tf.mul
with tf.multiply
.
https://github.com/tensorflow/models/issues/933
The documentation clearly indicates the calling order for tf.split should be:
tf.split(split_dim, num_split, value, name='split')
But the actual code indicates:
def split(value, num_or_size_splits, axis=0, num=None, name="split"):
在新版本中,tf.nn.rnn 被 tf.nn.static_rnn 替换。
tf.nn.softmax_cross_entropy_with_logits(logits_expanded,labels)
更换为:
tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=logits_expanded,labels=labels))
But instead of calling g.__next__()
, as Paolo says, use next(g).