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

x/netsaur/packages/core/src/backends/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.4.0-patch/packages/core/src/backends/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,
): void