Skip to main content
Module

x/bertml/model_manager.ts>ModelManager

Use common pre-trained ML models in Deno!
Latest
class ModelManager
import { ModelManager } from "https://deno.land/x/bertml@v0.1.0-alpha2/model_manager.ts";

Provides an abstraction for creating models that run on the same native thread (but don't block the JS thread).

Constructors

new
ModelManager(lib: Deno.DynamicLibrary<any>)

Properties

readonly
assertCode: (code: number) => Promise<number>

Asserts a value returned from a FFI function and throws with the error pulled from Rust stack if present.

readonly
bindings: FFISymbols

The native FFI functions - only use this if you know what you're doing.

readonly
helpers