MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / get_global_step_var

Function get_global_step_var

tensorpack/tfutils/common.py:64–72  ·  view source on GitHub ↗

Returns: tf.Tensor: the global_step variable in the current graph. Create if doesn't exist.

()

Source from the content-addressed store, hash-verified

62
63@graph_memoized
64def 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
75def get_global_step_value():

Callers 14

buildMethod · 0.85
_setup_graphMethod · 0.85
get_global_step_valueFunction · 0.85
_setup_inputMethod · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85
optimizerMethod · 0.85
optimizerMethod · 0.85
optimizerMethod · 0.85
optimizerMethod · 0.85
build_graphMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected