Skip to content

Commit

Permalink
rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yancey1989 committed Nov 10, 2017
1 parent f690116 commit 6059f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/operators/sequence_concat_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using LoDTensor = framework::LoDTensor;
using LoD = framework::LoD;

template <typename T>
LoD concatLoD(const std::vector<const T*> ins, const size_t level) {
LoD ConcatLoD(const std::vector<const T*> ins, const size_t level) {
auto out_lod = ins[0]->lod();
auto numLevels = ins[0]->NumLevels();
const size_t n = ins.size();
Expand Down Expand Up @@ -94,7 +94,7 @@ class SequenceConcatOpKernel : public framework::OpKernel<T> {
out->mutable_data<T>(ctx.GetPlace());
auto out_lod = ins[0]->lod();
if (axis == 0) {
out_lod = concatLoD<LoDTensor>(ins, level);
out_lod = ConcatLoD<LoDTensor>(ins, level);
}
out->set_lod(out_lod);

Expand Down Expand Up @@ -139,7 +139,7 @@ class SequenceConcatGradOpKernel : public framework::OpKernel<T> {
}
auto out_lod = ins[0]->lod();
if (axis == 0UL) {
out_lod = concatLoD<LoDTensor>(ins, level);
out_lod = ConcatLoD<LoDTensor>(ins, level);
}
const size_t level_idx = out_lod.size() - level - 1;
auto out_lod_level = framework::ToAbsOffset(out_lod)[level_idx];
Expand Down

0 comments on commit 6059f69

Please sign in to comment.