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

x/netsaur/backends/native/backend.ts>NativeBackend

Powerful machine learning, accelerated by WebGPU
Go to Latest
class NativeBackend
implements Backend
import { NativeBackend } from "https://deno.land/x/netsaur@0.1.5/backends/native/backend.ts";

Constructors

new
NativeBackend(config: NetworkConfig | Deno.PointerValue)

Properties

readonly
layers
readonly
unsafePointer

Methods

addLayer(_layer: Layer): void
feedForward(input: Matrix<"f32">): Matrix<"f32">
free(): void
initialize(_inputSize: Size, _batches: number): void
predict(input: Matrix<"f32">): Matrix<"f32">
save(path: string)
toJSON(): undefined
train(
datasets: Dataset[],
epochs?,
_batches?,
rate?,
)