Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/src/core/engine.ts>BackendLoader

Powerful machine learning, accelerated by WebGPU
Go to Latest
interface BackendLoader
import { type BackendLoader } from "https://deno.land/x/netsaur@0.2.12/src/core/engine.ts";

The Backend Loader is responsible for loading the backend and setting it up.

Methods

isSupported(): boolean

Whether the backend is supported.

setup(silent: boolean): Promise<boolean>

Setup the backend. Returns true if the backend was successfully setup.

loadBackend(config: NetworkConfig): Backend

Load the backend from a config.

loadFile(path: string): Sequential

Load a model from a safe tensors file path.

load(data: Uint8Array): Sequential

Load a model from Uint8Array data.