A Tensorflow or ONNX model.
Does not store the model directly. The model is stored in a WebWorker which this class internally accesses via an ID.
Removes all references to the internal model allowing it to be garbage collected.
Gets metadata of the model.
An object corresponding to the key "metadata_props" of an ONNX model, or an empty object for a TF model.
Runs the model on the given input.
List of input tensors.
Promise for a list of output tensors.
Runs the model on a single input tensor. This method is provided as convenience method for interfacing with Rust WASM, since arrays of custom objects are not supported yet.
a single input tensor.
The first output tensor.
Loads a model.
The URL to load the model from. Will be passed to fetch.
fetch
Additional options. See Options for details.
Generated using TypeDoc
A Tensorflow or ONNX model.
Does not store the model directly. The model is stored in a WebWorker which this class internally accesses via an ID.