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

Function func_with_args

tensorflow/contrib/framework/python/ops/arg_scope.py:175–182  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

173 """
174
175 def func_with_args(*args, **kwargs):
176 current_scope = current_arg_scope()
177 current_args = kwargs
178 key_func = arg_scope_func_key(func)
179 if key_func in current_scope:
180 current_args = current_scope[key_func].copy()
181 current_args.update(kwargs)
182 return func(*args, **current_args)
183
184 _add_op(func)
185 setattr(func_with_args, '_key_op', arg_scope_func_key(func))

Callers

nothing calls this directly

Calls 5

current_arg_scopeFunction · 0.85
arg_scope_func_keyFunction · 0.85
funcFunction · 0.50
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected