/third_party/skia/src/shaders/ |
D | BUILD.bazel | 26 "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/ |
D | gradients.lua | 24 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 …]
|
D | gradients.py | 29 gradients = [] 31 gradients.append(line.split()); 35 gradients);
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | rmsprop_impl.cu | 23 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/ |
D | effects.gni | 54 "$_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 …]
|
D | sksl.gni | 58 "$_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/ |
D | effects.gni | 54 "$_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/ |
D | rmsprop_cpu_kernel.cc | 30 …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/ |
D | rmsprop.py | 206 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)
|
D | momentum.py | 162 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) 174 … gradients, params, moments, self.ps_parameters, self.cache_enable)
|
D | lars.py | 155 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)
|
D | adam.py | 341 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) 364 … gradients, 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 …]
|
D | sgd.py | 177 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)
|
D | lazyadam.py | 260 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, 281 … gradients, self.parameters, self.moment1, self.moment2, self.ps_parameters,
|
D | thor.py | 94 def clip_gradient(enable_clip_grad, gradients): argument 98 gradients = C.clip_by_global_norm(gradients, GRADIENT_CLIP_VALUE, None) 100 … gradients = 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 …]
|
D | optimizer.py | 286 def decay_weight(self, gradients): argument 302 … gradients = self.map_(F.partial(_apply_decay), self.weight_decay_tensor_tuple, self.decay_flags, 303 params, gradients) 305 … gradients = 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 325 …gradients = 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/ |
D | test_rmsprop.py | 66 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/ |
D | test_rmsprop.py | 66 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/ |
D | rmsprop_fp32.c | 31 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()
|
D | rmsprop_fp32.h | 26 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/ |
D | thor.py | 313 …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/ |
D | test_stridedslice_grad.py | 50 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)
|
D | test_layernorm_grad.py | 48 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/ |
D | vf_edgedetect.c | 53 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/ |
D | rmsprop_gpu_kernel.h | 48 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()
|