Updated line for creating global step + grammar
tf.train.get_global_step() returns None if there is no global step, preventing the pruning from working. Therefore, tf.train.get_or_create_global_step() is a safer option.
Loading
Please sign in to comment