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

Method custom_getter

tensorflow/python/layers/core_test.py:310–312  ·  view source on GitHub ↗
(getter, *args, **kwargs)

Source from the content-addressed store, hash-verified

308 called = [0]
309
310 def custom_getter(getter, *args, **kwargs):
311 called[0] += 1
312 return getter(*args, **kwargs)
313
314 with variable_scope.variable_scope('test', custom_getter=custom_getter):
315 inputs = random_ops.random_uniform((5, 3), seed=1)

Callers

nothing calls this directly

Calls 1

getterFunction · 0.85

Tested by

no test coverage detected