Skip to content

Commit 76553c5

Browse files
committed
fix travis-ci
1 parent 83394ba commit 76553c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

paddle/fluid/operators/math/sequence_pooling.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ template <typename T>
107107
class LastSeqPoolFunctor {
108108
public:
109109
void operator()(const platform::CPUDeviceContext& context,
110-
const framework::LoDTensor& input, framework::Tensor* output) {
110+
const framework::LoDTensor& input,
111+
framework::Tensor* output) {
111112
// Create pointers to input and output data
112113
auto* in_data = input.data<T>();
113114
auto* out_data = output->data<T>();
@@ -124,15 +125,16 @@ class LastSeqPoolFunctor {
124125
// Copy the last item of sequence to output
125126
std::memcpy(out_data, (in_data - item_size), item_size * sizeof(T));
126127
out_data += item_size;
127-
}
128+
}
128129
}
129130
};
130131

131132
template <typename T>
132133
class FirstSeqPoolFunctor {
133134
public:
134135
void operator()(const platform::CPUDeviceContext& context,
135-
const framework::LoDTensor& input, framework::Tensor* output) {
136+
const framework::LoDTensor& input,
137+
framework::Tensor* output) {
136138
// Create pointers to input and output data
137139
auto* in_data = input.data<T>();
138140
auto* out_data = output->data<T>();
@@ -149,7 +151,7 @@ class FirstSeqPoolFunctor {
149151
// Point to the next sequence
150152
in_data += seq_len * item_size;
151153
out_data += item_size;
152-
}
154+
}
153155
}
154156
};
155157

@@ -176,8 +178,6 @@ class SequencePoolFunctor<platform::CPUDeviceContext, T> {
176178
first_pool(context, input, output);
177179
return;
178180
}
179-
180-
181181
auto lod = input.lod()[0];
182182
auto& place = *context.eigen_device();
183183
for (int i = 0; i < static_cast<int>(lod.size()) - 1; ++i) {

0 commit comments

Comments
 (0)