The URI or file path of the model to load.
Optional
options: SessionOptionsspecify configuration for creating a new inference session.
Create a new inference session and load model asynchronously from an array bufer.
A promise that resolves to an InferenceSession object.
An ArrayBuffer representation of an ONNX model.
Optional
options: SessionOptionsspecify configuration for creating a new inference session.
Create a new inference session and load model asynchronously from segment of an array bufer.
A promise that resolves to an InferenceSession object.
An ArrayBuffer representation of an ONNX model.
The beginning of the specified portion of the array buffer.
Optional
byteLength: numberThe length in bytes of the array buffer.
Optional
options: SessionOptionsspecify configuration for creating a new inference session.
Create a new inference session and load model asynchronously from a Uint8Array.
A promise that resolves to an InferenceSession object.
A Uint8Array representation of an ONNX model.
Optional
options: SessionOptionsspecify configuration for creating a new inference session.
Generated using TypeDoc
Create a new inference session and load model asynchronously from an ONNX model file.
Returns
A promise that resolves to an InferenceSession object.