MagmaDNN  1.0
c++NeuralNetworkFramework
crossentropy.h File Reference
#include "tensor/tensor.h"
#include "utilities_internal.h"
Include dependency graph for crossentropy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
void magmadnn::math::crossentropy (Tensor< T > *predicted, Tensor< T > *ground_truth, Tensor< T > *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