Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.1/src/gpu/layers/base.ts";

Base class for all layers.

Constructors

new
BaseGPULayer(config: GPULayerConfig, backend: WebGPUBackend)

Type Parameters

optional
T extends DataType = DataType

Properties

activationFn: GPUActivationFn
costFunction: GPUCostFunction
error: GPUMatrix
inputs: GPUMatrix
output: GPUMatrix
outputSize: number
product: GPUMatrix
weights: GPUMatrix
weightsDelta: GPUMatrix

Methods

feedForward(input: GPUMatrix): Promise<GPUMatrix>
initialize(
type: DataType,
inputSize: number,
batches: number,
)
reset(type: DataType, batches: number)