MCPcopy Create free account
hub / github.com/modelscope/modelscope / require_tf

Function require_tf

modelscope/utils/test_utils.py:56–59  ·  view source on GitHub ↗
(test_case)

Source from the content-addressed store, hash-verified

54
55
56def require_tf(test_case):
57 if not is_tf_available():
58 test_case = unittest.skip('test requires TensorFlow')(test_case)
59 return test_case
60
61
62def require_torch(test_case):

Callers

nothing calls this directly

Calls 1

is_tf_availableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…