Module wasi_nn::wasi_ephemeral_nn[][src]

Functions

compute

Compute the inference on the given inputs (see set_input).

get_output

Extract the outputs after inference.

init_execution_context

TODO Functions like describe_graph_inputs and describe_graph_outputs (returning an array of $tensor_descriptions) might be useful for introspecting the graph but are not yet included here. Create an execution instance of a loaded graph. TODO this may need to accept flags that might affect the compilation or execution of the graph.

load

Load an opaque sequence of bytes to use for inference.

set_input

Define the inputs to use for inference.