tesseract  5.0.0
tesseract::Relu Struct Reference

#include <functions.h>

Public Member Functions

TFloat operator() (TFloat x) const
 

Detailed Description

Definition at line 101 of file functions.h.

Member Function Documentation

◆ operator()()

TFloat tesseract::Relu::operator() ( TFloat  x) const
inline

Definition at line 102 of file functions.h.

102  {
103  if (x <= 0.0) {
104  return 0.0;
105  }
106  return x;
107  }

The documentation for this struct was generated from the following file: