realistic-ssl-evaluation icon indicating copy to clipboard operation
realistic-ssl-evaluation copied to clipboard

Mark global_step_init as used to prevent spurious warning msg

Open gar1t opened this issue 6 years ago • 1 comments

Without this, TF displays a warning message that looks like an error (contains traceback):

E1121 12:34:00.888499 139860141586240 tf_logging.py:105] ==================================
Object was never used (type <class 'tensorflow.python.framework.ops.Operation'>):
<tf.Operation 'init' type=NoOp>
If you want to mark it as used call its "mark_used()" method.
It was originally created here:
  ...

This behavior occurs on TF 1.12.0 but reports suggest that these warnings started appearing as early as TF 1.2.0.

gar1t avatar Nov 29 '18 13:11 gar1t

Hmm, I think a better solution is for global_step_init to be created in train_model.py instead. What do you think?

craffel avatar Jan 30 '19 21:01 craffel