
上QQ阅读APP看书,第一时间看更新
There's more...
tf_upgrade.py has certain limitations:
- It cannot change the arguments of tf.reverse(): you will have to manually fix it
- For methods with argument list reordered, like tf.split() and tf.reverse_split(), it will try to introduce keyword arguments, but it cannot actually reorder the arguments
- You will have to manually replace constructions like tf.get.variable_scope().reuse_variables() with the following:
with tf.variable_scope(tf.get_variable_scope(), resuse=True):