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

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

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

Go to the source code of this file.

Classes

struct  etl::detail::bce_impl
 Sum operation implementation. More...
 
struct  etl::detail::bce_loss_impl
 Sum operation implementation. More...
 
struct  etl::detail::bce_error_impl
 Sum operation implementation. More...
 

Functions

template<typename O , typename L >
constexpr etl::bce_impl etl::detail::select_bce_impl ()
 Select the BCE implementation for an expression of type E. More...
 
template<typename O , typename L >
constexpr etl::bce_impl etl::detail::select_bce_loss_impl ()
 Select the BCE implementation for an expression of type E. More...
 
template<typename O , typename L >
constexpr etl::bce_impl etl::detail::select_bce_error_impl ()
 Select the BCE implementation for an expression of type E. More...
 

Detailed Description

Selector for the Binary 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_bce_error_impl()

template<typename O , typename L >
constexpr etl::bce_impl etl::detail::select_bce_error_impl ( )

Select the BCE implementation for an expression of type E.

Template Parameters
EThe type of expression
Returns
The implementation to use

◆ select_bce_impl()

template<typename O , typename L >
constexpr etl::bce_impl etl::detail::select_bce_impl ( )

Select the BCE implementation for an expression of type E.

Template Parameters
EThe type of expression
Returns
The implementation to use

◆ select_bce_loss_impl()

template<typename O , typename L >
constexpr etl::bce_impl etl::detail::select_bce_loss_impl ( )

Select the BCE implementation for an expression of type E.

Template Parameters
EThe type of expression
Returns
The implementation to use