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

Function custom_getter

tensorpack/graph_builder/utils.py:58–60  ·  view source on GitHub ↗
(getter, name, *args, **kwargs)

Source from the content-addressed store, hash-verified

56 if enable:
57
58 def custom_getter(getter, name, *args, **kwargs):
59 _replace_global_by_local(kwargs)
60 return getter(name, *args, **kwargs)
61
62 with custom_getter_scope(custom_getter):
63 yield

Callers

nothing calls this directly

Calls 1

_replace_global_by_localFunction · 0.85

Tested by

no test coverage detected