Returns: tf.Tensor: the global_step variable in the current graph. Create if doesn't exist.
()
| 62 | |
| 63 | @graph_memoized |
| 64 | def get_global_step_var(): |
| 65 | """ |
| 66 | Returns: |
| 67 | tf.Tensor: the global_step variable in the current graph. Create if doesn't exist. |
| 68 | """ |
| 69 | scope = tfv1.VariableScope(reuse=False, name='') # the root vs |
| 70 | with tfv1.variable_scope(scope): |
| 71 | var = tfv1.train.get_or_create_global_step() |
| 72 | return var |
| 73 | |
| 74 | |
| 75 | def get_global_step_value(): |
no outgoing calls
no test coverage detected