Expand description
Opaque tensor descriptor handle for the Hurray C ABI.
HurrayDescriptor is an opaque heap-allocated handle wrapping a decoded
hurray_core::TensorDescriptor. Callers create handles by decoding raw
bytes via hurray_descriptor_decode and MUST release them exactly once
via hurray_descriptor_destroy.
Structs§
- Hurray
Descriptor - Opaque handle to a decoded tensor descriptor.
Functions§
- hurray_
descriptor_ ⚠buffer_ count - Reads the number of buffer handles in the tensor descriptor’s buffer table.
- hurray_
descriptor_ ⚠byte_ offset - Reads the byte offset from the start of buffer 0 to logical element
[0,…,0]. - hurray_
descriptor_ ⚠decode - Decodes a binary tensor descriptor from a byte buffer.
- hurray_
descriptor_ ⚠destroy - Destroys a
HurrayDescriptorhandle and frees its memory. - hurray_
descriptor_ ⚠element_ type_ tag - Reads the element type tag byte of the tensor descriptor.
- hurray_
descriptor_ ⚠layout_ tag - Reads the layout tag byte of the tensor descriptor.
- hurray_
descriptor_ ⚠rank - Reads the rank (number of dimensions) of the tensor descriptor.
- hurray_
descriptor_ ⚠shape - Reads the shape (dimension sizes) of a tensor descriptor.