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

Method __call__

tensorflow/python/ops/template.py:380–393  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

378 raise
379
380 def __call__(self, *args, **kwargs):
381 if self._variable_scope:
382 # Only reuse variables if not on first call.
383 with variable_scope.variable_scope(
384 self._variable_scope, reuse=not self._first_call):
385 return self._call_func(args, kwargs)
386 else:
387 # The scope was not created at construction time, so create it here.
388 # Subsequent calls should reuse variables.
389 with variable_scope.variable_scope(
390 self._unique_name, self._name,
391 custom_getter=self._custom_getter) as vs:
392 self._variable_scope = vs
393 return self._call_func(args, kwargs)
394
395 @property
396 def name(self):

Callers

nothing calls this directly

Calls 2

_call_funcMethod · 0.95
variable_scopeMethod · 0.80

Tested by

no test coverage detected