(name)
| 30 | |
| 31 | @contextmanager |
| 32 | def _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 | |
| 41 | def create_scalar_summary(name, v): |
no test coverage detected
searching dependent graphs…