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

Class TestPipeline

dali/test/python/test_deserialization.py:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class TestPipeline(Pipeline):
23 def __init__(self, batch_size, num_threads, shape):
24 super().__init__(batch_size, num_threads, device_id=0, seed=42)
25 self.cf = ops.random.Uniform(device="cpu", shape=shape, seed=42)
26
27 def define_graph(self):
28 cf = self.cf()
29 return cf
30
31
32def check_deserialization(batch_size, num_threads, shape):

Calls

no outgoing calls