MagmaDNN  1.0
c++NeuralNetworkFramework
crossentropy.cpp File Reference
Include dependency graph for crossentropy.cpp:

Functions

template<typename T >
void magmadnn::math::crossentropy (Tensor< T > *predicted, Tensor< T > *ground_truth, Tensor< T > *out)
 
template void magmadnn::math::crossentropy (Tensor< int > *predicted, Tensor< int > *ground_truth, Tensor< int > *out)
 
template void magmadnn::math::crossentropy (Tensor< float > *predicted, Tensor< float > *ground_truth, Tensor< float > *out)
 
template void magmadnn::math::crossentropy (Tensor< double > *predicted, Tensor< double > *ground_truth, Tensor< double > *out)
 

Detailed Description

Author
Daniel Nichols
Version
0.1
Date
2019-06-12

Function Documentation

◆ crossentropy()

template<typename T >
void magmadnn::math::crossentropy ( Tensor< T > *  predicted,
Tensor< T > *  ground_truth,
Tensor< T > *  out 
)

Computes the cross entropy of predicted and ground_truth into out.

Template Parameters
T
Parameters
predicted
ground_truth
outscalar tensor