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

Function get_arg_scope

tensorpack/tfutils/argscope.py:56–66  ·  view source on GitHub ↗

Returns: dict: the current argscope. An argscope is a dict of dict: ``dict[layername] = {arg: val}``

()

Source from the content-addressed store, hash-verified

54
55
56def get_arg_scope():
57 """
58 Returns:
59 dict: the current argscope.
60
61 An argscope is a dict of dict: ``dict[layername] = {arg: val}``
62 """
63 if len(_ArgScopeStack) > 0:
64 return _ArgScopeStack[-1]
65 else:
66 return defaultdict(dict)
67
68
69def enable_argscope_for_function(func, log_shape=True):

Callers 7

resnet_shortcutFunction · 0.90
se_bottleneckFunction · 0.90
resnet_shortcutFunction · 0.90
se_bottleneckFunction · 0.90
wrapped_funcFunction · 0.85
argscopeFunction · 0.85
wrapped_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected