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

Method from_callback

dali/test/python/test_pool.py:64–68  ·  view source on GitHub ↗
(
        cls, callback, batch=False, prefetch_queue_depth=1, bytes_per_sample_hint=None
    )

Source from the content-addressed store, hash-verified

62
63 @classmethod
64 def from_callback(
65 cls, callback, batch=False, prefetch_queue_depth=1, bytes_per_sample_hint=None
66 ):
67 _, source_desc = get_callback_from_source(callback, cycle=None)
68 return cls(source_desc, batch, prefetch_queue_depth, bytes_per_sample_hint)
69
70
71def create_pool(groups, keep_alive_queue_size=1, num_workers=1, start_method="fork"):

Calls 1

get_callback_from_sourceFunction · 0.90

Tested by

no test coverage detected