Function wasi_nn::load[][src]

pub unsafe fn load(
    builder: GraphBuilderArray<'_>,
    encoding: GraphEncoding,
    target: ExecutionTarget
) -> Result<Graph>

Load an opaque sequence of bytes to use for inference.

This allows runtime implementations to support multiple graph encoding formats. For unsupported graph encodings, return errno::inval.

Parameters

  • builder - The bytes necessary to build the graph.
  • encoding - The encoding of the graph.
  • target - Where to execute the graph.