MagmaDNN  1.0
c++NeuralNetworkFramework
gradientdescent_internal.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include "tensor/tensor.h"
12 
13 namespace magmadnn {
14 namespace internal {
15 
16 template <typename T>
17 magmadnn_error_t gradientdescent_update_internal(Tensor<T> *var, Tensor<T> *grad, T learning_rate);
18 
19 #if defined(_HAS_CUDA_)
20 template <typename T>
21 magmadnn_error_t gradientdescent_update_internal_device(Tensor<T> *var, Tensor<T> *grad, T learning_rate);
22 #endif
23 
24 } // namespace internal
25 } // namespace magmadnn
Definition: addop.cpp:11