Skip to content

Commit 2b430ad

Browse files
committed
Polish code
test=develop
1 parent a02ce58 commit 2b430ad

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

paddle/fluid/operators/nce_op.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ class NCEOpMaker : public framework::OpProtoAndCheckerMaker {
162162
"user should avoid setting this attribute.")
163163
.SetDefault({});
164164
AddComment(R"DOC(
165-
Compute and return the noise-contrastive estimation training loss. See
166-
`Noise-contrastive estimation: A new estimation principle for unnormalized
167-
statistical models
165+
Compute and return the noise-contrastive estimation training loss. See
166+
`Noise-contrastive estimation: A new estimation principle for unnormalized
167+
statistical models
168168
<http://www.jmlr.org/proceedings/papers/v9/gutmann10a/gutmann10a.pdf>`_.
169169
By default this operator uses a uniform distribution for sampling.
170170
)DOC");
@@ -230,14 +230,14 @@ class NCEOpGradVarTypeInference : public framework::VarTypeInference {
230230
auto attr = op_desc.GetAttr("is_sparse");
231231
bool is_sparse = boost::get<bool>(attr);
232232
if (is_sparse) {
233-
VLOG(30) << "nce_op_grad op " << weight_grad << " and " << bias_grad
234-
<< " is set to SelectedRows";
233+
VLOG(3) << "nce_op_grad op " << weight_grad << " and " << bias_grad
234+
<< " is set to SelectedRows";
235235
block->Var(weight_grad)
236236
->SetType(framework::proto::VarType::SELECTED_ROWS);
237237
block->Var(bias_grad)->SetType(framework::proto::VarType::SELECTED_ROWS);
238238
} else {
239-
VLOG(30) << "nce_op_grad op " << weight_grad << " and " << bias_grad
240-
<< " is set to LoDTensor";
239+
VLOG(3) << "nce_op_grad op " << weight_grad << " and " << bias_grad
240+
<< " is set to LoDTensor";
241241
block->Var(weight_grad)->SetType(framework::proto::VarType::LOD_TENSOR);
242242
block->Var(bias_grad)->SetType(framework::proto::VarType::LOD_TENSOR);
243243
}

0 commit comments

Comments
 (0)