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)Properties
backend: WebGPUBackend
Methods
addLayer(layer: Layer): void
backpropagate(output: GPUMatrix, rate: number)
feedForward(input: GPUMatrix)
getCostLoss(_output: DataTypeArray<T>)
getWeights(): GPUMatrix[]
predict(data: DataTypeArray<T>)
save(_str: string): void
setCost(activation: Cost): void
toJSON(): Promise<NetworkJSON>
Static Methods
fromJSON(data: NetworkJSON, backend: WebGPUBackend): Promise<GPUBackend>