MagmaDNN  1.0
c++NeuralNetworkFramework
geadd_internal.h
Go to the documentation of this file.
1 
9 #pragma once
10 #include "cblas.h"
11 #include "tensor/tensor.h"
12 
13 namespace magmadnn {
14 namespace internal {
15 
24 template <typename T>
25 bool geadd_check(Tensor<T> *A, Tensor<T> *B, Tensor<T> *C);
26 
35 template <typename T>
36 void geadd_full(T alpha, Tensor<T> *A, T beta, Tensor<T> *B, Tensor<T> *C);
37 
38 #if defined(_HAS_CUDA_)
39 
47 template <typename T>
48 void geadd_full_device(T alpha, Tensor<T> *A, T beta, Tensor<T> *B, Tensor<T> *C);
49 #endif
50 
51 
58 template <typename T>
59 void tensor_scalar_add_full(T alpha, Tensor<T> *x, Tensor<T> *out);
60 
61 #if defined(_HAS_CUDA_)
62 
68 template <typename T>
69 void tensor_scalar_add_full_device(T alpha, Tensor<T> *x, Tensor<T> *out);
70 #endif
71 
72 } // namespace internal
73 } // namespace magmadnn
Definition: addop.cpp:11
void geadd_full(T alpha, Tensor< T > *A, T beta, Tensor< T > *B, Tensor< T > *C)
Definition: geadd_internal.cpp:28
void tensor_scalar_add_full(T alpha, Tensor< T > *x, Tensor< T > *out)
Definition: geadd_internal.cpp:51
bool geadd_check(Tensor< T > *A, Tensor< T > *B, Tensor< T > *C)
Definition: geadd_internal.cpp:15