未验证 提交 06304ade 编写于 作者: R RedContritio 提交者: GitHub

fix typo (#54299)

上级 877948fa
......@@ -2819,7 +2819,7 @@ void OperatorWithKernel::ParseMultiInputDataType(
platform::errors::InvalidArgument(
"The DataType of %s Op's duplicable or different "
"slot Variable %s must be "
"consistent or reigster GetExpectedKernelType. The "
"consistent or register GetExpectedKernelType. The "
"current variable type is (%s), but the "
"previous variable type is (%s).",
Type(),
......@@ -2849,7 +2849,7 @@ void OperatorWithKernel::ParseMultiInputDataType(
platform::errors::InvalidArgument(
"The DataType of %s Op's duplicable or different "
"slot Variable %s must be "
"consistent or reigster GetExpectedKernelType. The "
"consistent or register GetExpectedKernelType. The "
"current variable type is (%s), but the "
"previous variable type is (%s).",
Type(),
......
......@@ -286,7 +286,7 @@ class IndexMomentumFunctor {
MT velocity_out = velocity * mu_ + grad;
MT velocity_tmp = update_method_(grad, velocity_out, mu_);
MT param_out = param - velocity_tmp * lr;
// write reigster to memory
// write register to memory
velocity_out_[i] = velocity_out;
param_out_[i] = static_cast<T>(param_out);
if (master_param_out_) {
......
......@@ -168,7 +168,7 @@ class DenseMomentumFunctor<T, TG, MT, kRegType, UseNesterov> {
MT velocity_out = velocity * mu_ + grad;
MT param_out = param - (grad + velocity_out * mu_) * lr;
// write reigster to memory
// write register to memory
velocity_out_[i] = velocity_out;
param_out_[i] = static_cast<T>(param_out);
if (master_param_out_) {
......@@ -232,7 +232,7 @@ class DenseMomentumFunctor<T, TG, MT, kRegType, NoNesterov> {
MT velocity_out = velocity * mu_ + grad;
MT param_out = param - lr * velocity_out;
// write reigster to memory
// write register to memory
velocity_out_[i] = velocity_out;
param_out_[i] = static_cast<T>(param_out);
if (master_param_out_) {
......@@ -315,7 +315,7 @@ class SparseMomentumFunctor<T, MT, UseNesterov> {
MT velocity_out = velocity * mu_ + grad;
MT param_out = param - (grad + velocity_out * mu_) * lr;
// write reigster to memory
// write register to memory
velocity_out_[i] = velocity_out;
param_out_[i] = static_cast<T>(param_out);
if (master_param_out_) {
......@@ -395,7 +395,7 @@ class SparseMomentumFunctor<T, MT, NoNesterov> {
MT velocity_out = velocity * mu_ + grad;
MT param_out = param - velocity_out * lr;
// write reigster to memory
// write register to memory
velocity_out_[i] = velocity_out;
param_out_[i] = static_cast<T>(param_out);
if (master_param_out_) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册