Skip to content

Commit efcec06

Browse files
committed
fix compute function
1 parent c16c32e commit efcec06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

paddle/fluid/operators/tile_op_npu.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ class TileNPUKernel : public framework::OpKernel<T> {
4747
"must be less than or equal to %d, but the value received is %d.",
4848
MAX_RANK_SUPPORTED, repeat_times_size));
4949
rank = std::max(rank, repeat_times_size);
50-
switch (rank) { REP_TILE_TEMPLATE(MAX_RANK_SUPPORTED) }
50+
Tile(context);
5151
}
5252

5353
protected:
54-
template <int Rank>
5554
void Tile(const framework::ExecutionContext& context) const {
5655
auto* in0 = context.Input<framework::Tensor>("X");
5756

0 commit comments

Comments
 (0)