| 20 | |
| 21 | |
| 22 | class 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 | |
| 32 | def check_deserialization(batch_size, num_threads, shape): |
no outgoing calls