MagmaDNN  1.0
c++NeuralNetworkFramework
crossentropy.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "tensor/tensor.h"
13 #include "utilities_internal.h"
14 
15 namespace magmadnn {
16 namespace math {
17 
24 template <typename T>
25 void crossentropy(Tensor<T> *predicted, Tensor<T> *ground_truth, Tensor<T> *out);
26 
27 
28 #if defined(_HAS_CUDA_)
29 template <typename T>
30 void crossentropy_device(Tensor<T> *predicted, Tensor<T> *ground_truth, Tensor<T> *out);
31 #endif
32 
33 }
34 }
Definition: addop.cpp:11