Nx.Stream protocol (Nx v0.1.0) View Source
The protocol for streaming data in and out of backends.
Link to this section Summary
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Returns the output of the stream.
It may be a tensor, a tuple of tensors, or a map of tensors.
Receives data from the stream.
It may be a tensor, a tuple of tensors, or a map of tensors.
Sends a tensor.
Returns the given tensor.