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

x/netsaur/src/backend_wasm/backend.ts>WASMBackend

Powerful machine learning, accelerated by WebGPU
Go to Latest
class WASMBackend
implements Backend
import { WASMBackend } from "https://deno.land/x/netsaur@0.2.6/src/backend_wasm/backend.ts";

Web Assembly Backend.

Constructors

new
WASMBackend(outputShape: Shape[Rank], id: number)

Properties

outputShape: Shape[Rank]

Methods

predict(input: Tensor<Rank>): Promise<Tensor<Rank>>
save(): Uint8Array
saveFile(input: string): void
train(
datasets: DataSet[],
epochs: number,
batches: number,
rate: number,
)

Static Methods

load(input: Uint8Array): WASMBackend
loadFile(path: string): WASMBackend