ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
lwtDev::LeakyReLU Class Reference

#include <Stack.h>

Collaboration diagram for lwtDev::LeakyReLU:

Public Member Functions

 LeakyReLU (double alpha)
 
double operator() (double) const
 

Private Attributes

double m_alpha
 

Detailed Description

Definition at line 345 of file Stack.h.

Constructor & Destructor Documentation

◆ LeakyReLU()

lwtDev::LeakyReLU::LeakyReLU ( double  alpha)

Definition at line 732 of file Stack.cxx.

732  :
733  m_alpha(alpha)
734  {}

Member Function Documentation

◆ operator()()

double lwtDev::LeakyReLU::operator() ( double  x) const

Definition at line 735 of file Stack.cxx.

735  {
736  return x > 0 ? x : m_alpha * x;
737  }

Member Data Documentation

◆ m_alpha

double lwtDev::LeakyReLU::m_alpha
private

Definition at line 351 of file Stack.h.


The documentation for this class was generated from the following files:
x
#define x
lwtDev::LeakyReLU::m_alpha
double m_alpha
Definition: Stack.h:351