Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netsaur/backends/gpu/mod.ts>GPUBackend

Powerful machine learning, accelerated by WebGPU
Go to Latest
class GPUBackend
implements Backend
Re-export
import { GPUBackend } from "https://deno.land/x/netsaur@0.1.5/backends/gpu/mod.ts";

Constructors

new
GPUBackend(config: NetworkConfig, backend: WebGPUBackend)

Type Parameters

optional
T extends DataType = DataType

Properties

backend: WebGPUBackend
costFn: GPUCostFunction
imported: boolean
optional
input: Size
layers: GPULayer[]
output: GPULayer
silent: boolean

Methods

addLayer(layer: Layer): void
backpropagate(output: GPUMatrix, rate: number)
initialize(
inputSize: Size,
batches: number,
type: DataType,
)
save(_str: string): void
setCost(activation: Cost): void
toJSON(): Promise<NetworkJSON>
train(
datasets: DataSet[],
epochs?,
batches?,
rate?,
)