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

Function has_arg_scope

tensorflow/contrib/framework/python/ops/arg_scope.py:189–198  ·  view source on GitHub ↗

Checks whether a func has been decorated with @add_arg_scope or not. Args: func: function to check. Returns: a boolean.

(func)

Source from the content-addressed store, hash-verified

187
188
189def has_arg_scope(func):
190 """Checks whether a func has been decorated with @add_arg_scope or not.
191
192 Args:
193 func: function to check.
194
195 Returns:
196 a boolean.
197 """
198 return arg_scope_func_key(func) in _DECORATED_OPS
199
200
201def arg_scoped_arguments(func):

Callers 2

arg_scopeFunction · 0.85
arg_scoped_argumentsFunction · 0.85

Calls 1

arg_scope_func_keyFunction · 0.85

Tested by

no test coverage detected