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

x/netsaur/src/gpu/layers/base.ts>BaseGPULayer

Powerful machine learning, accelerated by WebGPU
Go to Latest
class BaseGPULayer
import { BaseGPULayer } from "https://deno.land/x/netsaur@0.1.2/src/gpu/layers/base.ts";

Base class for all layers.

Constructors

new
BaseGPULayer(config: GPULayerConfig, backend: WebGPUBackend)

Properties

activationFn: GPUActivationFn
biases: GPUMatrix
cost: GPUMatrix
costFunction: GPUCostFunction
error: GPUMatrix
inputs: GPUMatrix
output: GPUMatrix
outputSize: number
weights: GPUMatrix

Methods

backPropagate(
error: GPUMatrix,
prev: GPUMatrix,
rate: number,
last: number,
): Promise<GPUMatrix>
feedForward(input: GPUMatrix): Promise<GPUMatrix>
initialize(
type: DataType,
inputSize: number,
batches: number,
)
reset(type: DataType, batches: number)