(self)
| 114 | """ |
| 115 | |
| 116 | def _setup_graph(self): |
| 117 | # ensure it exists |
| 118 | gs_var = get_global_step_var() |
| 119 | with tf.name_scope(None): |
| 120 | self.gs_incr_op = tf.assign_add( |
| 121 | gs_var, 1, |
| 122 | name=GLOBAL_STEP_INCR_OP_NAME).op |
| 123 | self._fetches = tf.train.SessionRunArgs(self.gs_incr_op) |
| 124 | |
| 125 | def _before_train(self): |
| 126 | if self.global_step != 0: |
nothing calls this directly
no test coverage detected