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:

FieldLengthDescription
shape_len4A little-endian u32 containing the shape field’s length
shapevariableA UTF-8 string encoding the tensor’s shape (i.e. element type and dimensions)
elementsvariableThe 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.