Structs

Data used when loading a Rune.

An error that may be returned by the Rune native library.

A dictionary mapping input node IDs to the tensor that will be passed into the Rune.

Metadata for a set of nodes in the ML pipeline.

Metadata for a single node.

An iterator over each of the tensors returned by the Rune.

A loaded Rune.

A wrapper around a tensor containing dynamically sized elements (i.e. strings).

Enums

The WebAssembly edngine to use when running a Rune.

Functions

Free an error once you are done with it.

Programmatically find out what kind of error this is.

Create a new Error with the provided error message.

Get a simple, oneline message describing the error.

Print the error, plus any errors that may have caused it.

Add a new tensor to this set of input tensors, returning a pointer to the newly created tensor.

Free a Metadata when you are done with it.

Get metadata for a specific node, returning null if the node doesn’t exist.

How many nodes does this set of Metadata contain?

How many arguments have been passed to this node?

Get the name for a particular argument, or null if that argument doesn’t exist.

Get the value for a particular argument, or null if that argument doesn’t exist.

Get the ID for this particular node.

Which kind of node is this?

Get a reference to the underlying Tensor if this output tensor has a fixed size.

Ask the OutputTensors iterator for the next OutputTensor and the ID of the node it came from.

Get a set of all the input nodes in this Rune.

Get a reference to the tensors associated with each output node.

Get a set of all the output nodes in this Rune.

Execute the rune, reading from the input tensors that were provided and writing to the output tensors.

Get a pointer to this StringTensor’s dimensions.

Get a pointer to the string at a specific index in the StringTensor’s backing array, returning its length in bytes and setting string_out if that string exists.

Get the number of dimensions in this StringTensor.

Get a readonly reference to this Tensor’s buffer.

Type Definitions