MCPcopy Create free account
hub / github.com/NVIDIA/DALI / is_error

Function is_error

dali/test/python/test_utils.py:276–282  ·  view source on GitHub ↗
(mean_err, max_err, eps, max_allowed_error)

Source from the content-addressed store, hash-verified

274 """
275
276 def is_error(mean_err, max_err, eps, max_allowed_error):
277 if max_allowed_error is not None:
278 if max_err > max_allowed_error:
279 return True
280 elif mean_err > eps:
281 return True
282 return False
283
284 import_numpy()
285 if isinstance(batch1, dali.backend.TensorListGPU):

Callers 1

check_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected