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

Function _enter_vs_reuse_ns

tensorpack/tfutils/summary.py:32–38  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

30
31@contextmanager
32def _enter_vs_reuse_ns(name):
33 vs = _get_cached_vs(name)
34 # XXX Not good to enter the cached vs directly, because this will clean-up custom getter
35 # with tf.variable_scope(name, reuse=tf.AUTO_REUSE): # available in 1.4 only
36 with tf.variable_scope(vs):
37 with tf.name_scope(vs.original_name_scope):
38 yield vs
39
40
41def create_scalar_summary(name, v):

Callers 1

add_moving_summaryFunction · 0.85

Calls 1

_get_cached_vsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…