Skip to main content

Module descriptor

Module descriptor 

Source
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§

HurrayDescriptor
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 HurrayDescriptor handle 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.