tesseract v5.3.3.20231005
functions.h File Reference
#include "helpers.h"
#include "tesstypes.h"

Go to the source code of this file.

Classes

struct  tesseract::FFunc
 
struct  tesseract::FPrime
 
struct  tesseract::ClipFFunc
 
struct  tesseract::ClipFPrime
 
struct  tesseract::Relu
 
struct  tesseract::ReluPrime
 
struct  tesseract::GFunc
 
struct  tesseract::GPrime
 
struct  tesseract::ClipGFunc
 
struct  tesseract::ClipGPrime
 
struct  tesseract::HFunc
 
struct  tesseract::HPrime
 
struct  tesseract::UnityFunc
 
struct  tesseract::IdentityFunc
 

Namespaces

namespace  tesseract
 

Macros

#define DEBUG_DETAIL   0
 

Functions

TFloat tesseract::Tanh (TFloat x)
 
TFloat tesseract::Logistic (TFloat x)
 
template<class Func >
void tesseract::FuncInplace (int n, TFloat *inout)
 
template<class Func >
void tesseract::FuncMultiply (const TFloat *u, const TFloat *v, int n, TFloat *out)
 
template<typename T >
void tesseract::SoftmaxInPlace (int n, T *inout)
 
void tesseract::CopyVector (unsigned n, const TFloat *src, TFloat *dest)
 
void tesseract::AccumulateVector (int n, const TFloat *src, TFloat *dest)
 
void tesseract::MultiplyVectorsInPlace (int n, const TFloat *src, TFloat *inout)
 
void tesseract::MultiplyAccumulate (int n, const TFloat *u, const TFloat *v, TFloat *out)
 
void tesseract::SumVectors (int n, const TFloat *v1, const TFloat *v2, const TFloat *v3, const TFloat *v4, const TFloat *v5, TFloat *sum)
 
template<typename T >
void tesseract::ZeroVector (unsigned n, T *vec)
 
template<typename T >
void tesseract::ClipVector (int n, T lower, T upper, T *vec)
 
void tesseract::CodeInBinary (int n, int nf, TFloat *vec)
 

Variables

constexpr int tesseract::kTableSize = 4096
 
constexpr TFloat tesseract::kScaleFactor = 256.0
 

Macro Definition Documentation

◆ DEBUG_DETAIL

#define DEBUG_DETAIL   0

Definition at line 27 of file functions.h.