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

Method __init__

dali/test/python/operator_2/test_python_function.py:53–65  ·  view source on GitHub ↗
(
        self, batch_size, num_threads, device_id, _seed, image_dir, prefetch_queue_depth=2
    )

Source from the content-addressed store, hash-verified

51
52class CommonPipeline(Pipeline):
53 def __init__(
54 self, batch_size, num_threads, device_id, _seed, image_dir, prefetch_queue_depth=2
55 ):
56 super().__init__(
57 batch_size,
58 num_threads,
59 device_id,
60 seed=_seed,
61 prefetch_queue_depth=prefetch_queue_depth,
62 )
63 self.input = ops.readers.File(file_root=image_dir)
64 self.decode = ops.decoders.Image(device="cpu", output_type=types.RGB)
65 self.resize = ops.PythonFunction(function=resize, output_layouts="HWC")
66
67 def load(self):
68 jpegs, labels = self.input()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected