Skip to main content

HURRAY_ITEM_TENSOR

Constant HURRAY_ITEM_TENSOR 

Source
pub const HURRAY_ITEM_TENSOR: u8 = 0;
Expand description

A plain tensor: it owns buffers and no node after it belongs to it.

Unlike the HURRAY_KV_* tags, these two are not wire values: the wire has no tensor-or-composite tag, it has a composite layout (tag 0x0B). The kind is here so that walking the array needs no descriptor decode, and so that a head with member_count == 0 — which the layout permits — is still distinguishable from a tensor.