37 #include <cuv/tools/cuv_general.hpp>
64 template<
class __value_type,
class __memory_space_type,
class S>
65 void rprop(tensor<__value_type,__memory_space_type>& W, tensor<__value_type,__memory_space_type>& dW, tensor<S,__memory_space_type>& dW_old, tensor<__value_type,__memory_space_type>& rate,
const float& decay = 0.0f,
const float& sparsedecay=0.0f);
72 template<
class __value_type,
class __memory_space_type,
class S>
73 void rprop(
tensor<__value_type,__memory_space_type, column_major>& W,
tensor<__value_type,__memory_space_type, column_major>& dW,
tensor<S,__memory_space_type, column_major>& dW_old,
tensor<__value_type,__memory_space_type, column_major>& rate,
const float& decay = 0.0f,
const float& sparsedecay=0.0f){
76 rprop(*reinterpret_cast<rm_tensor*>(&W),*reinterpret_cast<rm_tensor*>(&dW),*reinterpret_cast<rm_tensor_S*>(&dW_old),*reinterpret_cast<rm_tensor*>(&rate),decay,sparsedecay);
89 template<
class __value_type,
class __memory_space_type>
90 void learn_step_weight_decay(tensor<__value_type,__memory_space_type>& W,
const tensor<__value_type,__memory_space_type>& dW,
const float& learnrate,
const float& decay = 0.0f,
const float& sparsedecay=0.0f);
104 template<
class V,
class M>
105 void learn_step_weight_decay_momentum(tensor<V,M>& W, tensor<V,M>& momentum,
const tensor<V,M>& dW,
const float& learnrate,
const float& momentum_weight=0.9,
const float& decay = 0.0f,
const float& sparsedecay=0.0f);
112 template<
class __value_type,
class __memory_space_type>
115 learn_step_weight_decay(*reinterpret_cast<rm_tensor*>(&W),*reinterpret_cast<const rm_tensor*>(&dW),learnrate,decay,sparsedecay);