BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnGemStripMLPModel Class Reference

#include <BmnGemStripMLPModel.h>

Public Types

enum  OutputActivation { kLinearOutput = 0 , kSigmoidOutput = 1 , kLinearOutput = 0 , kSigmoidOutput = 1 }
enum  OutputActivation { kLinearOutput = 0 , kSigmoidOutput = 1 , kLinearOutput = 0 , kSigmoidOutput = 1 }

Public Member Functions

 BmnGemStripMLPModel ()
 BmnGemStripMLPModel (const std::string &path, bool verbose=true)
virtual ~BmnGemStripMLPModel ()
bool Load (const std::string &path, bool verbose=true)
void Clear ()
bool IsLoaded () const
int GetInputDim () const
int GetWidth () const
int GetNBlocks () const
int GetOutputDim () const
int GetOutputActivation () const
float GetLayerNormEpsilon () const
float GetLeakyReLUSlope () const
size_t GetNParams () const
const std::vector< std::string > & GetFeatureNames () const
int GetFeatureIndex (const std::string &name) const
bool CheckFeatureNames (const std::vector< std::string > &expected, std::string *why=nullptr) const
const std::string & GetFilePath () const
const std::string & GetArchHash () const
const std::string & GetSourceName () const
const std::string & GetCreated () const
void Print (std::ostream &os=std::cout) const
bool Predict (const float *input, float *output) const
std::vector< float > Predict (const std::vector< float > &input) const
bool PredictSplit (const float *common, int n_common, const float *specific, int n_rows, float *output) const
int GetNTests () const
float GetTestTolerance () const
bool RunSelfTest (float *max_abs_diff=nullptr, bool verbose=false) const
const float * GetTestInput (int itest) const
const float * GetTestOutput (int itest) const
 BmnGemStripMLPModel ()
 BmnGemStripMLPModel (const std::string &path, bool verbose=true)
virtual ~BmnGemStripMLPModel ()
bool Load (const std::string &path, bool verbose=true)
void Clear ()
bool IsLoaded () const
int GetInputDim () const
int GetWidth () const
int GetNBlocks () const
int GetOutputDim () const
int GetOutputActivation () const
float GetLayerNormEpsilon () const
float GetLeakyReLUSlope () const
size_t GetNParams () const
const std::vector< std::string > & GetFeatureNames () const
int GetFeatureIndex (const std::string &name) const
bool CheckFeatureNames (const std::vector< std::string > &expected, std::string *why=nullptr) const
const std::string & GetFilePath () const
const std::string & GetArchHash () const
const std::string & GetSourceName () const
const std::string & GetCreated () const
void Print (std::ostream &os=std::cout) const
bool Predict (const float *input, float *output) const
std::vector< float > Predict (const std::vector< float > &input) const
bool PredictSplit (const float *common, int n_common, const float *specific, int n_rows, float *output) const
int GetNTests () const
float GetTestTolerance () const
bool RunSelfTest (float *max_abs_diff=nullptr, bool verbose=false) const
const float * GetTestInput (int itest) const
const float * GetTestOutput (int itest) const

Static Public Member Functions

static std::shared_ptr< const BmnGemStripMLPModel > GetShared (const std::string &path="")
static void SetDefaultPath (const std::string &path)
static std::string GetDefaultPath ()
static std::string GetBuiltinDefaultPath ()
static void ClearSharedCache ()
static std::shared_ptr< const BmnGemStripMLPModel > GetShared (const std::string &path="")
static void SetDefaultPath (const std::string &path)
static std::string GetDefaultPath ()
static std::string GetBuiltinDefaultPath ()
static void ClearSharedCache ()

Static Public Attributes

static constexpr int kMaxWidth = 1024
static constexpr int kMaxDim = 1024

Private Member Functions

void ForwardFromFirstDense (float *h, float *output) const
bool Parse (const std::vector< unsigned char > &buffer, std::string &error)
void ForwardFromFirstDense (float *h, float *output) const
bool Parse (const std::vector< unsigned char > &buffer, std::string &error)

Private Attributes

bool fLoaded
int fInputDim
int fWidth
int fNBlocks
int fOutputDim
int fOutputActivation
float fLayerNormEps
float fLeakyReLUSlope
std::string fFilePath
std::string fArchHash
std::string fSourceName
std::string fCreated
std::vector< std::string > fFeatureNames
std::vector< float > fParams
size_t fOffDenseInW
size_t fOffDenseInB
size_t fOffBlocks
size_t fBlockSize
size_t fOffFinalLnG
size_t fOffFinalLnB
size_t fOffDenseOutW
size_t fOffDenseOutB
int fNTests
float fTestTolerance
std::vector< float > fTestInputs
std::vector< float > fTestOutputs

Detailed Description

Definition at line 34 of file BmnGemStripMLPModel.h.

Member Enumeration Documentation

◆ OutputActivation [1/2]

Enumerator
kLinearOutput 0 
kSigmoidOutput 1 
kLinearOutput 0 
kSigmoidOutput 1 

Definition at line 43 of file BmnGemStripMLPModel.h.

◆ OutputActivation [2/2]

Enumerator
kLinearOutput 0 
kSigmoidOutput 1 
kLinearOutput 0 
kSigmoidOutput 1 

Definition at line 43 of file BmnGemStripMLPModel.h.

Constructor & Destructor Documentation

◆ BmnGemStripMLPModel() [1/4]

BmnGemStripMLPModel::BmnGemStripMLPModel ( )

Definition at line 282 of file BmnGemStripMLPModel.cxx.

References Clear().

Here is the call graph for this function:

◆ BmnGemStripMLPModel() [2/4]

BmnGemStripMLPModel::BmnGemStripMLPModel ( const std::string & path,
bool verbose = true )
explicit

Definition at line 287 of file BmnGemStripMLPModel.cxx.

References Clear(), and Load().

Here is the call graph for this function:

◆ ~BmnGemStripMLPModel() [1/2]

BmnGemStripMLPModel::~BmnGemStripMLPModel ( )
virtual

Definition at line 293 of file BmnGemStripMLPModel.cxx.

◆ BmnGemStripMLPModel() [3/4]

BmnGemStripMLPModel::BmnGemStripMLPModel ( )

◆ BmnGemStripMLPModel() [4/4]

BmnGemStripMLPModel::BmnGemStripMLPModel ( const std::string & path,
bool verbose = true )
explicit

◆ ~BmnGemStripMLPModel() [2/2]

virtual BmnGemStripMLPModel::~BmnGemStripMLPModel ( )
virtual

Member Function Documentation

◆ CheckFeatureNames() [1/2]

bool BmnGemStripMLPModel::CheckFeatureNames ( const std::vector< std::string > & expected,
std::string * why = nullptr ) const

Definition at line 665 of file BmnGemStripMLPModel.cxx.

References fFeatureNames, and i.

Referenced by BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_FastStand(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_Parallel().

Here is the caller graph for this function:

◆ CheckFeatureNames() [2/2]

bool BmnGemStripMLPModel::CheckFeatureNames ( const std::vector< std::string > & expected,
std::string * why = nullptr ) const

◆ Clear() [1/2]

void BmnGemStripMLPModel::Clear ( )

Definition at line 295 of file BmnGemStripMLPModel.cxx.

References fArchHash, fBlockSize, fCreated, fFeatureNames, fFilePath, fInputDim, fLayerNormEps, fLeakyReLUSlope, fLoaded, fNBlocks, fNTests, fOffBlocks, fOffDenseInB, fOffDenseInW, fOffDenseOutB, fOffDenseOutW, fOffFinalLnB, fOffFinalLnG, fOutputActivation, fOutputDim, fParams, fSourceName, fTestInputs, fTestOutputs, fTestTolerance, fWidth, and kLinearOutput.

Referenced by BmnGemStripMLPModel(), BmnGemStripMLPModel(), and Load().

Here is the caller graph for this function:

◆ Clear() [2/2]

void BmnGemStripMLPModel::Clear ( )

◆ ClearSharedCache() [1/2]

void BmnGemStripMLPModel::ClearSharedCache ( )
static

Definition at line 754 of file BmnGemStripMLPModel.cxx.

◆ ClearSharedCache() [2/2]

void BmnGemStripMLPModel::ClearSharedCache ( )
static

◆ ForwardFromFirstDense() [1/2]

void BmnGemStripMLPModel::ForwardFromFirstDense ( float * h,
float * output ) const
private

Definition at line 513 of file BmnGemStripMLPModel.cxx.

References fBlockSize, fLayerNormEps, fLeakyReLUSlope, fNBlocks, fOffBlocks, fOffDenseOutB, fOffDenseOutW, fOffFinalLnB, fOffFinalLnG, fOutputActivation, fOutputDim, fParams, fWidth, i, kMaxWidth, and kSigmoidOutput.

Referenced by Predict(), and PredictSplit().

Here is the caller graph for this function:

◆ ForwardFromFirstDense() [2/2]

void BmnGemStripMLPModel::ForwardFromFirstDense ( float * h,
float * output ) const
private

◆ GetArchHash() [1/2]

const std::string & BmnGemStripMLPModel::GetArchHash ( ) const
inline

Definition at line 81 of file BmnGemStripMLPModel.h.

References fArchHash.

◆ GetArchHash() [2/2]

const std::string & BmnGemStripMLPModel::GetArchHash ( ) const
inline

Definition at line 81 of file BmnGemStripMLPModel.h.

References fArchHash.

◆ GetBuiltinDefaultPath() [1/2]

std::string BmnGemStripMLPModel::GetBuiltinDefaultPath ( )
static

Definition at line 749 of file BmnGemStripMLPModel.cxx.

◆ GetBuiltinDefaultPath() [2/2]

std::string BmnGemStripMLPModel::GetBuiltinDefaultPath ( )
static

◆ GetCreated() [1/2]

const std::string & BmnGemStripMLPModel::GetCreated ( ) const
inline

Definition at line 83 of file BmnGemStripMLPModel.h.

References fCreated.

◆ GetCreated() [2/2]

const std::string & BmnGemStripMLPModel::GetCreated ( ) const
inline

Definition at line 83 of file BmnGemStripMLPModel.h.

References fCreated.

◆ GetDefaultPath() [1/2]

std::string BmnGemStripMLPModel::GetDefaultPath ( )
static

Definition at line 742 of file BmnGemStripMLPModel.cxx.

Referenced by BmnGemStripModule::GetANNModelPath().

Here is the caller graph for this function:

◆ GetDefaultPath() [2/2]

std::string BmnGemStripMLPModel::GetDefaultPath ( )
static

◆ GetFeatureIndex() [1/2]

int BmnGemStripMLPModel::GetFeatureIndex ( const std::string & name) const

Definition at line 659 of file BmnGemStripMLPModel.cxx.

References fFeatureNames.

◆ GetFeatureIndex() [2/2]

int BmnGemStripMLPModel::GetFeatureIndex ( const std::string & name) const

◆ GetFeatureNames() [1/2]

const std::vector< std::string > & BmnGemStripMLPModel::GetFeatureNames ( ) const
inline

Definition at line 75 of file BmnGemStripMLPModel.h.

References fFeatureNames.

◆ GetFeatureNames() [2/2]

const std::vector< std::string > & BmnGemStripMLPModel::GetFeatureNames ( ) const
inline

Definition at line 75 of file BmnGemStripMLPModel.h.

References fFeatureNames.

◆ GetFilePath() [1/2]

const std::string & BmnGemStripMLPModel::GetFilePath ( ) const
inline

Definition at line 80 of file BmnGemStripMLPModel.h.

References fFilePath.

Referenced by BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_FastStand(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_Parallel().

Here is the caller graph for this function:

◆ GetFilePath() [2/2]

const std::string & BmnGemStripMLPModel::GetFilePath ( ) const
inline

Definition at line 80 of file BmnGemStripMLPModel.h.

References fFilePath.

◆ GetInputDim() [1/2]

int BmnGemStripMLPModel::GetInputDim ( ) const
inline

Definition at line 66 of file BmnGemStripMLPModel.h.

References fInputDim.

◆ GetInputDim() [2/2]

int BmnGemStripMLPModel::GetInputDim ( ) const
inline

Definition at line 66 of file BmnGemStripMLPModel.h.

References fInputDim.

◆ GetLayerNormEpsilon() [1/2]

float BmnGemStripMLPModel::GetLayerNormEpsilon ( ) const
inline

Definition at line 71 of file BmnGemStripMLPModel.h.

References fLayerNormEps.

◆ GetLayerNormEpsilon() [2/2]

float BmnGemStripMLPModel::GetLayerNormEpsilon ( ) const
inline

Definition at line 71 of file BmnGemStripMLPModel.h.

References fLayerNormEps.

◆ GetLeakyReLUSlope() [1/2]

float BmnGemStripMLPModel::GetLeakyReLUSlope ( ) const
inline

Definition at line 72 of file BmnGemStripMLPModel.h.

References fLeakyReLUSlope.

◆ GetLeakyReLUSlope() [2/2]

float BmnGemStripMLPModel::GetLeakyReLUSlope ( ) const
inline

Definition at line 72 of file BmnGemStripMLPModel.h.

References fLeakyReLUSlope.

◆ GetNBlocks() [1/2]

int BmnGemStripMLPModel::GetNBlocks ( ) const
inline

Definition at line 68 of file BmnGemStripMLPModel.h.

References fNBlocks.

◆ GetNBlocks() [2/2]

int BmnGemStripMLPModel::GetNBlocks ( ) const
inline

Definition at line 68 of file BmnGemStripMLPModel.h.

References fNBlocks.

◆ GetNParams() [1/2]

size_t BmnGemStripMLPModel::GetNParams ( ) const
inline

Definition at line 73 of file BmnGemStripMLPModel.h.

References fParams.

◆ GetNParams() [2/2]

size_t BmnGemStripMLPModel::GetNParams ( ) const
inline

Definition at line 73 of file BmnGemStripMLPModel.h.

References fParams.

◆ GetNTests() [1/2]

int BmnGemStripMLPModel::GetNTests ( ) const
inline

Definition at line 102 of file BmnGemStripMLPModel.h.

References fNTests.

◆ GetNTests() [2/2]

int BmnGemStripMLPModel::GetNTests ( ) const
inline

Definition at line 102 of file BmnGemStripMLPModel.h.

References fNTests.

◆ GetOutputActivation() [1/2]

int BmnGemStripMLPModel::GetOutputActivation ( ) const
inline

Definition at line 70 of file BmnGemStripMLPModel.h.

References fOutputActivation.

◆ GetOutputActivation() [2/2]

int BmnGemStripMLPModel::GetOutputActivation ( ) const
inline

Definition at line 70 of file BmnGemStripMLPModel.h.

References fOutputActivation.

◆ GetOutputDim() [1/2]

int BmnGemStripMLPModel::GetOutputDim ( ) const
inline

Definition at line 69 of file BmnGemStripMLPModel.h.

References fOutputDim.

Referenced by BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_FastStand(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_Parallel().

Here is the caller graph for this function:

◆ GetOutputDim() [2/2]

int BmnGemStripMLPModel::GetOutputDim ( ) const
inline

Definition at line 69 of file BmnGemStripMLPModel.h.

References fOutputDim.

◆ GetShared() [1/2]

std::shared_ptr< const BmnGemStripMLPModel > BmnGemStripMLPModel::GetShared ( const std::string & path = "")
static

Definition at line 704 of file BmnGemStripMLPModel.cxx.

Referenced by BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_FastStand(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_Parallel().

Here is the caller graph for this function:

◆ GetShared() [2/2]

std::shared_ptr< const BmnGemStripMLPModel > BmnGemStripMLPModel::GetShared ( const std::string & path = "")
static

◆ GetSourceName() [1/2]

const std::string & BmnGemStripMLPModel::GetSourceName ( ) const
inline

Definition at line 82 of file BmnGemStripMLPModel.h.

References fSourceName.

◆ GetSourceName() [2/2]

const std::string & BmnGemStripMLPModel::GetSourceName ( ) const
inline

Definition at line 82 of file BmnGemStripMLPModel.h.

References fSourceName.

◆ GetTestInput() [1/2]

const float * BmnGemStripMLPModel::GetTestInput ( int itest) const

Definition at line 616 of file BmnGemStripMLPModel.cxx.

References fInputDim, fNTests, and fTestInputs.

Referenced by RunSelfTest().

Here is the caller graph for this function:

◆ GetTestInput() [2/2]

const float * BmnGemStripMLPModel::GetTestInput ( int itest) const

◆ GetTestOutput() [1/2]

const float * BmnGemStripMLPModel::GetTestOutput ( int itest) const

Definition at line 623 of file BmnGemStripMLPModel.cxx.

References fNTests, fOutputDim, and fTestOutputs.

Referenced by RunSelfTest().

Here is the caller graph for this function:

◆ GetTestOutput() [2/2]

const float * BmnGemStripMLPModel::GetTestOutput ( int itest) const

◆ GetTestTolerance() [1/2]

float BmnGemStripMLPModel::GetTestTolerance ( ) const
inline

Definition at line 103 of file BmnGemStripMLPModel.h.

References fTestTolerance.

◆ GetTestTolerance() [2/2]

float BmnGemStripMLPModel::GetTestTolerance ( ) const
inline

Definition at line 103 of file BmnGemStripMLPModel.h.

References fTestTolerance.

◆ GetWidth() [1/2]

int BmnGemStripMLPModel::GetWidth ( ) const
inline

Definition at line 67 of file BmnGemStripMLPModel.h.

References fWidth.

◆ GetWidth() [2/2]

int BmnGemStripMLPModel::GetWidth ( ) const
inline

Definition at line 67 of file BmnGemStripMLPModel.h.

References fWidth.

◆ IsLoaded() [1/2]

bool BmnGemStripMLPModel::IsLoaded ( ) const
inline

Definition at line 62 of file BmnGemStripMLPModel.h.

References fLoaded.

◆ IsLoaded() [2/2]

bool BmnGemStripMLPModel::IsLoaded ( ) const
inline

Definition at line 62 of file BmnGemStripMLPModel.h.

References fLoaded.

◆ Load() [1/2]

bool BmnGemStripMLPModel::Load ( const std::string & path,
bool verbose = true )

Definition at line 324 of file BmnGemStripMLPModel.cxx.

References Clear(), fFilePath, fLoaded, fTestTolerance, Parse(), and RunSelfTest().

Referenced by BmnGemStripMLPModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Load() [2/2]

bool BmnGemStripMLPModel::Load ( const std::string & path,
bool verbose = true )

◆ Parse() [1/2]

bool BmnGemStripMLPModel::Parse ( const std::vector< unsigned char > & buffer,
std::string & error )
private

Definition at line 376 of file BmnGemStripMLPModel.cxx.

References fArchHash, fBlockSize, fCreated, fFeatureNames, fInputDim, fLayerNormEps, fLeakyReLUSlope, fNBlocks, fNTests, fOffBlocks, fOffDenseInB, fOffDenseInW, fOffDenseOutB, fOffDenseOutW, fOffFinalLnB, fOffFinalLnG, fOutputActivation, fOutputDim, fParams, fSourceName, fTestInputs, fTestOutputs, fTestTolerance, fWidth, kLinearOutput, kMaxDim, kMaxWidth, kSigmoidOutput, names, and v.

Referenced by Load().

Here is the caller graph for this function:

◆ Parse() [2/2]

◆ Predict() [1/4]

bool BmnGemStripMLPModel::Predict ( const float * input,
float * output ) const

Definition at line 551 of file BmnGemStripMLPModel.cxx.

References fInputDim, fLoaded, fOffDenseInB, fOffDenseInW, ForwardFromFirstDense(), fParams, fWidth, kMaxDim, and kMaxWidth.

Referenced by Predict(), and RunSelfTest().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Predict() [2/4]

bool BmnGemStripMLPModel::Predict ( const float * input,
float * output ) const

◆ Predict() [3/4]

std::vector< float > BmnGemStripMLPModel::Predict ( const std::vector< float > & input) const

Definition at line 570 of file BmnGemStripMLPModel.cxx.

References fInputDim, fLoaded, fOutputDim, and Predict().

Here is the call graph for this function:

◆ Predict() [4/4]

std::vector< float > BmnGemStripMLPModel::Predict ( const std::vector< float > & input) const

◆ PredictSplit() [1/2]

bool BmnGemStripMLPModel::PredictSplit ( const float * common,
int n_common,
const float * specific,
int n_rows,
float * output ) const

Definition at line 581 of file BmnGemStripMLPModel.cxx.

References fInputDim, fLoaded, fOffDenseInB, fOffDenseInW, ForwardFromFirstDense(), fOutputDim, fParams, fWidth, kMaxDim, kMaxWidth, and W().

Referenced by BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_FastStand(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_MLP_Parallel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PredictSplit() [2/2]

bool BmnGemStripMLPModel::PredictSplit ( const float * common,
int n_common,
const float * specific,
int n_rows,
float * output ) const

◆ Print() [1/2]

void BmnGemStripMLPModel::Print ( std::ostream & os = std::cout) const

◆ Print() [2/2]

void BmnGemStripMLPModel::Print ( std::ostream & os = std::cout) const

◆ RunSelfTest() [1/2]

bool BmnGemStripMLPModel::RunSelfTest ( float * max_abs_diff = nullptr,
bool verbose = false ) const

Definition at line 630 of file BmnGemStripMLPModel.cxx.

References d, fLoaded, fNTests, fOutputDim, fTestTolerance, GetTestInput(), GetTestOutput(), and Predict().

Referenced by Load().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunSelfTest() [2/2]

bool BmnGemStripMLPModel::RunSelfTest ( float * max_abs_diff = nullptr,
bool verbose = false ) const

◆ SetDefaultPath() [1/2]

void BmnGemStripMLPModel::SetDefaultPath ( const std::string & path)
static

Definition at line 735 of file BmnGemStripMLPModel.cxx.

Referenced by BmnGemStripModule::SetANNModelPath().

Here is the caller graph for this function:

◆ SetDefaultPath() [2/2]

void BmnGemStripMLPModel::SetDefaultPath ( const std::string & path)
static

Member Data Documentation

◆ fArchHash

std::string BmnGemStripMLPModel::fArchHash
private

Definition at line 139 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetArchHash(), Parse(), and Print().

◆ fBlockSize

size_t BmnGemStripMLPModel::fBlockSize
private

Definition at line 149 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), and Parse().

◆ fCreated

std::string BmnGemStripMLPModel::fCreated
private

Definition at line 141 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetCreated(), Parse(), and Print().

◆ fFeatureNames

std::vector< std::string > BmnGemStripMLPModel::fFeatureNames
private

◆ fFilePath

std::string BmnGemStripMLPModel::fFilePath
private

Definition at line 138 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetFilePath(), Load(), Parse(), and Print().

◆ fInputDim

int BmnGemStripMLPModel::fInputDim
private

◆ fLayerNormEps

float BmnGemStripMLPModel::fLayerNormEps
private

◆ fLeakyReLUSlope

float BmnGemStripMLPModel::fLeakyReLUSlope
private

Definition at line 136 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), GetLeakyReLUSlope(), Parse(), and Print().

◆ fLoaded

bool BmnGemStripMLPModel::fLoaded
private

◆ fNBlocks

int BmnGemStripMLPModel::fNBlocks
private

Definition at line 132 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), GetNBlocks(), Parse(), and Print().

◆ fNTests

int BmnGemStripMLPModel::fNTests
private

◆ fOffBlocks

size_t BmnGemStripMLPModel::fOffBlocks
private

Definition at line 148 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), and Parse().

◆ fOffDenseInB

size_t BmnGemStripMLPModel::fOffDenseInB
private

Definition at line 147 of file BmnGemStripMLPModel.h.

Referenced by Clear(), Parse(), Predict(), and PredictSplit().

◆ fOffDenseInW

size_t BmnGemStripMLPModel::fOffDenseInW
private

Definition at line 146 of file BmnGemStripMLPModel.h.

Referenced by Clear(), Parse(), Predict(), and PredictSplit().

◆ fOffDenseOutB

size_t BmnGemStripMLPModel::fOffDenseOutB
private

Definition at line 153 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), and Parse().

◆ fOffDenseOutW

size_t BmnGemStripMLPModel::fOffDenseOutW
private

Definition at line 152 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), and Parse().

◆ fOffFinalLnB

size_t BmnGemStripMLPModel::fOffFinalLnB
private

Definition at line 151 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), and Parse().

◆ fOffFinalLnG

size_t BmnGemStripMLPModel::fOffFinalLnG
private

Definition at line 150 of file BmnGemStripMLPModel.h.

Referenced by Clear(), ForwardFromFirstDense(), and Parse().

◆ fOutputActivation

int BmnGemStripMLPModel::fOutputActivation
private

◆ fOutputDim

int BmnGemStripMLPModel::fOutputDim
private

◆ fParams

std::vector< float > BmnGemStripMLPModel::fParams
private

◆ fSourceName

std::string BmnGemStripMLPModel::fSourceName
private

Definition at line 140 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetSourceName(), Parse(), and Print().

◆ fTestInputs

std::vector< float > BmnGemStripMLPModel::fTestInputs
private

Definition at line 158 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetTestInput(), and Parse().

◆ fTestOutputs

std::vector< float > BmnGemStripMLPModel::fTestOutputs
private

Definition at line 159 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetTestOutput(), and Parse().

◆ fTestTolerance

float BmnGemStripMLPModel::fTestTolerance
private

Definition at line 157 of file BmnGemStripMLPModel.h.

Referenced by Clear(), GetTestTolerance(), Load(), Parse(), Print(), and RunSelfTest().

◆ fWidth

int BmnGemStripMLPModel::fWidth
private

◆ kMaxDim

constexpr int BmnGemStripMLPModel::kMaxDim = 1024
staticconstexpr

Definition at line 40 of file BmnGemStripMLPModel.h.

Referenced by Parse(), Predict(), and PredictSplit().

◆ kMaxWidth

constexpr int BmnGemStripMLPModel::kMaxWidth = 1024
staticconstexpr

Definition at line 39 of file BmnGemStripMLPModel.h.

Referenced by ForwardFromFirstDense(), Parse(), Predict(), and PredictSplit().


The documentation for this class was generated from the following files: