1 #include "caffe2/perfkernels/adagrad.h" 5 #include "caffe2/perfkernels/common.h" 9 void adagrad_update__base(
19 internal::adagrad_update_base_inlined(N, w, g, h, nw, nh, decay, epsilon, lr);
22 void adagrad_update_prefetch__base(
40 adagrad_update__base(N, w, g, h, nw, nh, epsilon, 1.0f, lr);
43 void adagrad_fp16_update_prefetch__base(
56 internal::adagrad_update_base_inlined(N, w, g, h, nw, nh, 1.0f, epsilon, lr);
59 void rowwise_adagrad_update__base(
71 internal::rowwise_adagrad_update_inlined(N, w, w_n, g, h, h_n, epsilon, lr);
75 decltype(adagrad_update__base) adagrad_update__avx_f16c;
86 AVX_F16C_DO(adagrad_update, N, w, g, h, nw, nh, epsilon, decay, lr);
87 BASE_DO(adagrad_update, N, w, g, h, nw, nh, epsilon, decay, lr);
90 decltype(adagrad_update_prefetch__base) adagrad_update_prefetch__avx_f16c;
91 void adagrad_update_prefetch(
110 adagrad_update_prefetch,
124 adagrad_update_prefetch,
142 adagrad_fp16_update_prefetch__base) adagrad_fp16_update_prefetch__avx_f16c;
143 void adagrad_fp16_update_prefetch(
157 adagrad_fp16_update_prefetch,
171 adagrad_fp16_update_prefetch,
186 decltype(rowwise_adagrad_update__base) rowwise_adagrad_update__avx_f16c;
187 void rowwise_adagrad_update(
199 AVX_F16C_DO(rowwise_adagrad_update, N, w, w_n, g, h, h_n, epsilon, lr);
200 BASE_DO(rowwise_adagrad_update, N, w, w_n, g, h, h_n, epsilon, lr);
203 SPARSE_ADAGRAD_SPECIALIZATION(int32_t, base);
205 decltype(sparse_adagrad_int32_t__base) sparse_adagrad_int32_t__avx_f16c;
214 const int32_t* indices,
220 sparse_adagrad_int32_t,
233 sparse_adagrad_int32_t,
247 SPARSE_ADAGRAD_SPECIALIZATION(int64_t, base);
249 decltype(sparse_adagrad_int64_t__base) sparse_adagrad_int64_t__avx_f16c;
258 const int64_t* indices,
264 sparse_adagrad_int64_t,
277 sparse_adagrad_int64_t,
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Flush-To-Zero and Denormals-Are-Zero mode.