Loading...
Searching...
No Matches
Public Member Functions | List of all members
loss_base< CONF > Struct Template Referenceabstract

Forward declaration. More...

#include <loss_base.h>

Inherited by loss_ptr< CONF > [virtual].

Public Member Functions

 BBM_IMPORT_CONFIG (CONF)
 
virtual ~loss_base (void)
 empty virtual base destructor
 
virtual void update (void)=0
 update
 
virtual Value operator() (Mask mask=true) const =0
 operator(): compute the loss
 

Detailed Description

template<typename CONF>
requires concepts::config<CONF>
struct bbm::loss_base< CONF >

Forward declaration.

Constructor & Destructor Documentation

◆ ~loss_base()

virtual ~loss_base ( void  )
inlinevirtual

empty virtual base destructor

Member Function Documentation

◆ BBM_IMPORT_CONFIG()

BBM_IMPORT_CONFIG ( CONF  )

◆ operator()()

virtual Value operator() ( Mask  mask = true) const
pure virtual

operator(): compute the loss

Parameters
mask= mask to enable/disable lanes.
Returns
the loss

Implemented in loss< LOSSFUNCTION >, and loss_ptr< CONF >.

◆ update()

virtual void update ( void  )
pure virtual

update

Update the internal state of the loss computations; perform any intialization and/or precomputations needed. This method should be called each time the optimization target changes.

Implemented in loss< LOSSFUNCTION >, and loss_ptr< CONF >.


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