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

Function wrapper

tensorflow/python/framework/test_util.py:417–423  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

415 def real_skip_if(fn):
416
417 def wrapper(*args, **kwargs):
418 if callable(condition):
419 skip = condition()
420 else:
421 skip = condition
422 if not skip:
423 return fn(*args, **kwargs)
424
425 return wrapper
426

Callers

nothing calls this directly

Calls 2

conditionFunction · 0.50
fnFunction · 0.50

Tested by

no test coverage detected