Expression Templates Library (ETL)
Classes | Functions
cce.hpp File Reference

Selector for the Categorical Cross Entropy reduction implementations. More...

#include "etl/impl/std/cce.hpp"
#include "etl/impl/egblas/cce.hpp"
Include dependency graph for cce.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  etl::detail::cce_impl
 Sum operation implementation. More...
 
struct  etl::detail::cce_loss_impl
 Sum operation implementation. More...
 
struct  etl::detail::cce_error_impl
 Sum operation implementation. More...
 

Functions

template<typename O , typename L >
constexpr etl::cce_impl etl::detail::select_cce_impl ()
 Select the CCE implementation for an expression of type E. More...
 
template<typename O , typename L >
constexpr etl::cce_impl etl::detail::select_cce_loss_impl ()
 Select the CCE implementation for an expression of type E. More...
 
template<typename O , typename L >
constexpr etl::cce_impl etl::detail::select_cce_error_impl ()
 Select the CCE implementation for an expression of type E. More...
 

Detailed Description

Selector for the Categorical Cross Entropy reduction implementations.

The functions are responsible for selecting the most efficient implementation for each case, based on what is available.

Function Documentation

◆ select_cce_error_impl()

template<typename O , typename L >
constexpr etl::cce_impl etl::detail::select_cce_error_impl ( )

Select the CCE implementation for an expression of type E.

Template Parameters
EThe type of expression
Returns
The implementation to use

◆ select_cce_impl()

template<typename O , typename L >
constexpr etl::cce_impl etl::detail::select_cce_impl ( )

Select the CCE implementation for an expression of type E.

Template Parameters
EThe type of expression
Returns
The implementation to use

◆ select_cce_loss_impl()

template<typename O , typename L >
constexpr etl::cce_impl etl::detail::select_cce_loss_impl ( )

Select the CCE implementation for an expression of type E.

Template Parameters
EThe type of expression
Returns
The implementation to use