MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _set_scope

Method _set_scope

tensorflow/python/layers/base.py:305–315  ·  view source on GitHub ↗
(self, scope=None)

Source from the content-addressed store, hash-verified

303 return self._current_scope.original_name_scope
304
305 def _set_scope(self, scope=None):
306 if self._scope is None:
307 # If constructed with _scope=None, lazy setting of scope.
308 if self._reuse:
309 with vs.variable_scope(
310 scope if scope is not None else self._base_name) as captured_scope:
311 self._scope = captured_scope
312 else:
313 with vs.variable_scope(
314 scope, default_name=self._base_name) as captured_scope:
315 self._scope = captured_scope
316
317 def add_weight(self,
318 name,

Callers 2

add_weightMethod · 0.95
__call__Method · 0.95

Calls 1

variable_scopeMethod · 0.80

Tested by

no test coverage detected