MagmaDNN  1.0
c++NeuralNetworkFramework
crossentropy_internal.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include "tensor/tensor.h"
12 
13 #if defined(_HAS_CUDA_)
14 #include <cuda.h>
15 #endif
16 
17 namespace magmadnn {
18 namespace internal {
19 
20 template <typename T>
21 void crossentropy_full(Tensor<T> *x, Tensor<T> *y, Tensor<T> *softmax, Tensor<T> *out);
22 
23 
24 #if defined(_HAS_CUDA_)
25 template <typename T>
26 void crossentropy_full_device(Tensor<T> *x, Tensor<T> *y, Tensor<T> *softmax, Tensor<T> *out);
27 #endif
28 
29 
30 } // namespace internal
31 } // namespace magmadnn
Definition: addop.cpp:11