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

Function cupy_wrapper

dali/test/python/test_dltensor_operator.py:209–213  ·  view source on GitHub ↗
(fun, synchronize)

Source from the content-addressed store, hash-verified

207
208
209def cupy_wrapper(fun, synchronize):
210 if synchronize:
211 return lambda in1, in2: cupy_adapter_sync(fun, in1, in2)
212 else:
213 return lambda in1, in2: cupy_adapter(fun, in1, in2)
214
215
216def cupy_compare(fun, synchronize, pre1, pre2, post1, post2):

Callers 1

cupy_caseFunction · 0.85

Calls 2

cupy_adapter_syncFunction · 0.85
cupy_adapterFunction · 0.85

Tested by

no test coverage detected