MCPcopy
hub / github.com/huggingface/transformers / wrapper

Function wrapper

src/transformers/testing_utils.py:424–428  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

422def skip_if_not_implemented(test_func):
423 @functools.wraps(test_func)
424 def wrapper(*args, **kwargs):
425 try:
426 return test_func(*args, **kwargs)
427 except NotImplementedError as e:
428 raise unittest.SkipTest(f"Test skipped due to NotImplementedError: {e}")
429
430 return wrapper
431

Callers

nothing calls this directly

Calls 7

is_torch_xpu_availableFunction · 0.85
joinMethod · 0.80
splitMethod · 0.80
errorMethod · 0.45
getMethod · 0.45
runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected