19.10. Streams

class popxl.DeviceToHostStream

A device-to-host stream in the IR.

This can be created in the main graph of the IR only.

You can pass a device-to-host stream and a tensor to popxl.ops.host_store() in any subgraph any number of times, and in all cases PopART will send the tensor to the stream.

class popxl.HostToDeviceStream

A host-to-device stream in the IR.

This can be created in the main graph of the IR only.

You can pass a host-to-device stream and a tensor to popxl.ops.host_load() in any subgraph any number of times, and in all cases PopART will stream the next value into the tensor.