Constant hotg_rune_core::outputs::TENSOR
source · [−]pub const TENSOR: u32 = 5;
Expand description
A raw tensor output.
The buffer passed from the Rune to the runtime will be laid out as:
Field | Length | Description |
---|---|---|
shape_len | 4 | A little-endian u32 containing the shape field’s length |
shape | variable | A UTF-8 string encoding the tensor’s shape (i.e. element type and dimensions) |
elements | variable | The tensor data itself, in little-endian format |
This pattern may be repeated an arbitrary number of times, depending on how many tensors are being outputted.