Home
last modified time | relevance | path

Searched refs:gradients (Results 1 – 25 of 144) sorted by relevance

123456

/third_party/skia/src/shaders/
DBUILD.bazel26 "gradients/Sk4fGradientBase.cpp",
27 "gradients/Sk4fGradientBase.h",
28 "gradients/Sk4fGradientPriv.h",
29 "gradients/Sk4fLinearGradient.cpp",
30 "gradients/Sk4fLinearGradient.h",
31 "gradients/SkGradientShader.cpp",
32 "gradients/SkGradientShaderPriv.h",
33 "gradients/SkLinearGradient.cpp",
34 "gradients/SkLinearGradient.h",
35 "gradients/SkRadialGradient.cpp",
[all …]
/third_party/flutter/skia/tools/lua/
Dgradients.lua24 gradients = {}
35 gradients[i] = {}
37 gradients[i].filename = filename
47 gradients[i].boundsWidth = width
48 gradients[i].boundsHeight = height
50 gradients[i].colorCount = g.colorCount
51 gradients[i].type = g.type
52 gradients[i].tile = g.tile
60 gradients[i].isEvenlySpaced = isEvenlySpaced
68 gradients[i].numHardStops = numHardStops
[all …]
Dgradients.py29 gradients = []
31 gradients.append(line.split());
35 gradients);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Drmsprop_impl.cu23 T* mean_square, T*moment, T* gradients, const size_t size) { in RmsPropKernel() argument
25 mean_square[i] = decay * mean_square[i] + (1.0 - decay) * gradients[i] * gradients[i]; in RmsPropKernel()
26 …ment[i] = momentum * moment[i] + learning_rate[0] * rsqrt(mean_square[i] + epsilon) * gradients[i]; in RmsPropKernel()
33 …T* variable, T* mean_square, T* moment, T* gradients, const size_t size, cudaStream_t cuda_stream)… in RmsProp() argument
35 … variable, mean_square, moment, gradients, size); in RmsProp()
40 … T* variable, T* mean_gradients, T* mean_square, T*moment, T* gradients, in RmsPropCenterKernel() argument
43 mean_gradients[i] = decay[0] * mean_gradients[i] + (1.0 - decay[0]) * gradients[i]; in RmsPropCenterKernel()
44 mean_square[i] = decay[0] * mean_square[i] + (1.0 - decay[0]) * gradients[i] * gradients[i]; in RmsPropCenterKernel()
46 … rsqrt(mean_square[i] - mean_gradients[i] * mean_gradients[i] + epsilon[0]) * gradients[i]; in RmsPropCenterKernel()
53 T* mean_gradients, T* mean_square, T*moment, T* gradients, const size_t size, in RmsPropCenter() argument
[all …]
/third_party/flutter/skia/gn/
Deffects.gni54 "$_src/shaders/gradients/Sk4fGradientBase.cpp",
55 "$_src/shaders/gradients/Sk4fGradientBase.h",
56 "$_src/shaders/gradients/Sk4fGradientPriv.h",
57 "$_src/shaders/gradients/Sk4fLinearGradient.cpp",
58 "$_src/shaders/gradients/Sk4fLinearGradient.h",
59 "$_src/shaders/gradients/SkGradientShader.cpp",
60 "$_src/shaders/gradients/SkGradientShaderPriv.h",
61 "$_src/shaders/gradients/SkLinearGradient.cpp",
62 "$_src/shaders/gradients/SkLinearGradient.h",
63 "$_src/shaders/gradients/SkRadialGradient.cpp",
[all …]
Dsksl.gni58 "$_src/gpu/gradients/GrClampedGradientEffect.fp",
59 "$_src/gpu/gradients/GrDualIntervalGradientColorizer.fp",
60 "$_src/gpu/gradients/GrLinearGradientLayout.fp",
61 "$_src/gpu/gradients/GrRadialGradientLayout.fp",
62 "$_src/gpu/gradients/GrSingleIntervalGradientColorizer.fp",
63 "$_src/gpu/gradients/GrSweepGradientLayout.fp",
64 "$_src/gpu/gradients/GrTextureGradientColorizer.fp",
65 "$_src/gpu/gradients/GrTiledGradientEffect.fp",
66 "$_src/gpu/gradients/GrTwoPointConicalGradientLayout.fp",
67 "$_src/gpu/gradients/GrUnrolledBinaryGradientColorizer.fp",
/third_party/skia/gn/
Deffects.gni54 "$_src/shaders/gradients/Sk4fGradientBase.cpp",
55 "$_src/shaders/gradients/Sk4fGradientBase.h",
56 "$_src/shaders/gradients/Sk4fGradientPriv.h",
57 "$_src/shaders/gradients/Sk4fLinearGradient.cpp",
58 "$_src/shaders/gradients/Sk4fLinearGradient.h",
59 "$_src/shaders/gradients/SkGradientShader.cpp",
60 "$_src/shaders/gradients/SkGradientShaderPriv.h",
61 "$_src/shaders/gradients/SkLinearGradient.cpp",
62 "$_src/shaders/gradients/SkLinearGradient.h",
63 "$_src/shaders/gradients/SkRadialGradient.cpp",
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Drmsprop_cpu_kernel.cc30 …RMSPropCPUKernel<T>::LaunchRMSPropUnuseCenter(T *variable, T *mean_square, T *moment, T *gradients, in LaunchRMSPropUnuseCenter() argument
34 …task = [this, &variable, &mean_square, &moment, &gradients, &learning_rate](size_t start, size_t e… in LaunchRMSPropUnuseCenter()
35 …(void)RMSPropUnuseCenterFp32(variable, mean_square, moment, gradients, momentum_, learning_rate[0]… in LaunchRMSPropUnuseCenter()
39 …task = [this, &variable, &mean_square, &moment, &gradients, &learning_rate](size_t start, size_t e… in LaunchRMSPropUnuseCenter()
41 mean_square[i] += (gradients[i] * gradients[i] - mean_square[i]) * (1.0 - decay_); in LaunchRMSPropUnuseCenter()
42 …moment[i] = moment[i] * momentum_ + (gradients[i] * learning_rate[0]) / sqrt(mean_square[i] + epsi… in LaunchRMSPropUnuseCenter()
51 …d RMSPropCPUKernel<T>::LaunchRMSPropUseCenter(T *variable, T *mean_square, T *moment, T *gradients, in LaunchRMSPropUseCenter() argument
57 … (void)RMSPropUseCenterFp32(variable, mean_square, moment, gradients, mean_gradients, momentum[0], in LaunchRMSPropUseCenter()
63 mean_square[i] += (gradients[i] * gradients[i] - mean_square[i]) * (1.0 - decay[0]); in LaunchRMSPropUseCenter()
64 mean_gradients[i] += (gradients[i] - mean_gradients[i]) * (1.0 - decay[0]); in LaunchRMSPropUseCenter()
[all …]
/third_party/mindspore/mindspore/nn/optim/
Drmsprop.py206 def construct(self, gradients): argument
208 gradients = self.decay_weight(gradients)
209 gradients = self.gradients_centralization(gradients)
210 gradients = self.scale_grad(gradients)
216 … lr, params, self.mg, self.ms, self.moment, gradients)
220 params, self.mg, self.ms, self.moment, gradients)
225 lr, params, self.ms, self.moment, gradients)
229 params, self.ms, self.moment, gradients)
Dmomentum.py162 def construct(self, gradients): argument
165 gradients = self.decay_weight(gradients)
166 gradients = self.gradients_centralization(gradients)
167 gradients = self.scale_grad(gradients)
171 … lr, gradients, params, moments, self.ps_parameters, self.cache_enable)
174gradients, params, moments, self.ps_parameters, self.cache_enable)
Dlars.py155 def construct(self, gradients): argument
163 gradients = self.hyper_map(F.partial(_grad_scale, self.reciprocal_scale), gradients)
167 gradients = self.hyper_map(F.partial(_lars_opt, self.lars), lr, self.weight_decay,
168 gradients, params, self.decay_flags, self.lars_flag)
170 gradients = self.hyper_map(F.partial(_lars_opt, self.lars, lr), self.weight_decay,
171 gradients, params, self.decay_flags, self.lars_flag)
173 gradients = self.hyper_map(F.partial(_lars_opt, self.lars, lr, self.weight_decay),
174 gradients, params, self.decay_flags, self.lars_flag)
175 success = self.opt(gradients)
Dadam.py341 def construct(self, gradients): argument
345 gradients = self.decay_weight(gradients)
346 gradients = self.gradients_centralization(gradients)
347 gradients = self.scale_grad(gradients)
348 gradients = self._grad_sparse_indices_deduplicate(gradients)
359 … lr, gradients, params, moment1, moment2, self.ps_parameters, self.cache_enable)
364gradients, params, moment1, moment2, self.ps_parameters, self.cache_enable)
492 def construct(self, gradients): argument
498 … self.moments2, gradients, self.decay_flags, self.optim_filter)
502 gradients, self.decay_flags, self.optim_filter)
[all …]
Dsgd.py177 def construct(self, gradients): argument
181 gradients = self.gradients_centralization(gradients)
182 gradients = self.scale_grad(gradients)
186 lr, gradients, params, accum, stat)
189 gradients, params, accum, stat)
Dlazyadam.py260 def construct(self, gradients): argument
261 gradients = self.decay_weight(gradients)
262 gradients = self.gradients_centralization(gradients)
263 gradients = self.scale_grad(gradients)
264 gradients = self._grad_sparse_indices_deduplicate(gradients)
274 … lr, gradients, self.parameters, self.moment1, self.moment2, self.ps_parameters,
281gradients, self.parameters, self.moment1, self.moment2, self.ps_parameters,
Dthor.py94 def clip_gradient(enable_clip_grad, gradients): argument
98 gradients = C.clip_by_global_norm(gradients, GRADIENT_CLIP_VALUE, None)
100gradients = hyper_map_op(F.partial(clip_grad, GRADIENT_CLIP_TYPE, GRADIENT_CLIP_VALUE), gradients)
101 return gradients
515 def _get_ainv_ginv_list(self, gradients, damping_step, matrix_a_allreduce, matrix_g_allreduce): argument
522 g = gradients[i]
585 def construct(self, gradients): argument
588 gradients = self.scale_grad(gradients)
595 … matrix_a_allreduce, matrix_g_allreduce = self._get_ainv_ginv_list(gradients, damping_step,
602 g = gradients[i]
[all …]
Doptimizer.py286 def decay_weight(self, gradients): argument
302gradients = self.map_(F.partial(_apply_decay), self.weight_decay_tensor_tuple, self.decay_flags,
303 params, gradients)
305gradients = self.map_(F.partial(_apply_decay, self.weight_decay_tensor), self.decay_flags,
306 params, gradients)
308 return gradients
310 def gradients_centralization(self, gradients): argument
325gradients = self.map_(F.partial(_apply_grad_centralization), self.grad_centralization_flags, gradi…
327 return gradients
329 def scale_grad(self, gradients): argument
[all …]
/third_party/mindspore/tests/st/ops/gpu/
Dtest_rmsprop.py66 def rmsprop_numpy(variable, gradients, mean_square, moment, argument
68 mean_square = mean_square * decay + (1.0 - decay) * gradients * gradients
69 moment = momentum * moment + learning_rate / np.sqrt(mean_square + epsilon) * gradients
71 return variable, gradients, mean_square, moment
74 def rmspropcented_numpy(variable, gradients, mean_gradients, mean_square, moment, argument
76 mean_gradients = mean_gradients * decay + (1.0 - decay) * gradients
77 mean_square = mean_square * decay + (1.0 - decay) * gradients * gradients
79 mean_square - mean_gradients * mean_gradients + epsilon) * gradients
81 return variable, gradients, mean_gradients, mean_square, moment
97 gradients = Tensor(gradients_np)
[all …]
/third_party/mindspore/tests/st/ops/cpu/
Dtest_rmsprop.py66 def rmsprop_numpy(variable, gradients, mean_square, moment, argument
68 mean_square = mean_square * decay + (1.0 - decay) * gradients * gradients
69 moment = momentum * moment + learning_rate / np.sqrt(mean_square + epsilon) * gradients
71 return variable, gradients, mean_square, moment
74 def rmspropcented_numpy(variable, gradients, mean_gradients, mean_square, moment, argument
76 mean_gradients = mean_gradients * decay + (1.0 - decay) * gradients
77 mean_square = mean_square * decay + (1.0 - decay) * gradients * gradients
79 mean_square - mean_gradients * mean_gradients + epsilon) * gradients
81 return variable, gradients, mean_gradients, mean_square, moment
97 gradients = Tensor(gradients_np)
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Drmsprop_fp32.c31 int RMSPropUnuseCenterFp32(float *variable, float *mean_square, float *moment, float *gradients, fl… in RMSPropUnuseCenterFp32() argument
38 float *gradients_ptr = gradients + start; in RMSPropUnuseCenterFp32()
73 mean_square[c1] += (gradients[c1] * gradients[c1] - mean_square[c1]) * (1.0 - decay); in RMSPropUnuseCenterFp32()
74 …moment[c1] = moment[c1] * momentum + (gradients[c1] * learning_rate) / sqrt(mean_square[c1] + epsi… in RMSPropUnuseCenterFp32()
80 int RMSPropUseCenterFp32(float *variable, float *mean_square, float *moment, float *gradients, floa… in RMSPropUseCenterFp32() argument
89 float *gradients_ptr = gradients + start; in RMSPropUseCenterFp32()
137 mean_square[c1] += (gradients[c1] * gradients[c1] - mean_square[c1]) * (1.0 - decay); in RMSPropUseCenterFp32()
138 mean_gradients[c1] += (gradients[c1] - mean_gradients[c1]) * (1.0 - decay); in RMSPropUseCenterFp32()
141 moment[c1] = moment[c1] * momentum + (gradients[c1] * learning_rate) / sqrt(denom); in RMSPropUseCenterFp32()
Drmsprop_fp32.h26 int RMSPropUnuseCenterFp32(float *variable, float *mean_square, float *moment, float *gradients, fl…
29 int RMSPropUseCenterFp32(float *variable, float *mean_square, float *moment, float *gradients, floa…
/third_party/mindspore/tests/st/networks/models/resnet50/src_thor/
Dthor.py313 …def _get_Ainv_Ginv_Amax_Gmax_list(self, gradients, damping_step, matrix_a_allreduce, matrix_g_allr… argument
321 g = gradients[i]
421 def _get_second_gradients(self, new_grads, damping_step, gradients): argument
425 g = gradients[i]
434 new_grads = new_grads + (g, gradients[i + 1])
438 new_grads = new_grads + (g, gradients[i + 1], gradients[i + 2])
441 def construct(self, gradients): argument
452 …self._get_Ainv_Ginv_Amax_Gmax_list(gradients, damping_step, matrix_A_allreduce, matrix_G_allreduce,
462 g = gradients[i]
493 new_grads = new_grads + (g, gradients[i + 1])
[all …]
/third_party/mindspore/tests/st/ops/ascend/test_tbe_ops/
Dtest_stridedslice_grad.py50 def me_stridedslice(input_, begin, end, stride, gradients): argument
52 out_grad_me = Tensor(gradients)
64 gradients = np.random.randn(2).astype(np.float32)
65 me_stridedslice(input_, begin, end, stride, gradients)
Dtest_layernorm_grad.py48 def py_me_layernorm_grad(input_data, normalized_shape, gamma, beta, axis, gradients): argument
55 out_pool_grad_me = Tensor(gradients)
66 gradients = np.ones((1, 128, 1024)).astype(np.float32)
71 py_me_layernorm_grad(input_data, (1024,), gamma, beta, 2, gradients)
/third_party/ffmpeg/libavfilter/
Dvf_edgedetect.c53 uint16_t *gradients; member
138 plane->gradients = av_calloc(plane->width * plane->height, sizeof(*plane->gradients)); in config_props()
140 if (!plane->tmpbuf || !plane->gradients || !plane->directions) in config_props()
353 uint16_t *gradients = plane->gradients; in filter_frame() local
373 gradients, width, in filter_frame()
383 gradients, width); in filter_frame()
411 av_freep(&plane->gradients); in uninit()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Drmsprop_gpu_kernel.h48 T *gradients = GetDeviceAddress<T>(inputs, 4); in Launch() local
50 …RmsProp(learning_rate, decay_, momentum_, epsilon_, variable, mean_square, moment, gradients, size… in Launch()
57 T *gradients = GetDeviceAddress<T>(inputs, 4); in Launch() local
63 …(learning_rate, decay, momentum, epsilon, variable, mean_gradients, mean_square, moment, gradients, in Launch()

123456