- TensorFlow 1.x Deep Learning Cookbook
- Antonio Gulli Amita Kapoor
- 59字
- 2021-07-02 22:01:28
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):