Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netsaur/src/cpu/activation.ts>LeakyRelu

Powerful machine learning, accelerated by WebGPU
Go to Latest
class LeakyRelu
implements CPUActivationFn
import { LeakyRelu } from "https://deno.land/x/netsaur@0.1.2/src/cpu/activation.ts";

Leaky ReLU activation function f(x) = x if x > 0, 0.01 * x otherwise

Methods

activate(val: number): number
prime(val: number): number