Skip to content

Commit

Permalink
change unique op VisitaDataType from small to tiny (#32872)
Browse files Browse the repository at this point in the history
  • Loading branch information
MingMingShangTian authored May 13, 2021
1 parent eeca963 commit b60ab6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/operators/unique_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ class UniqueKernel : public framework::OpKernel<T> {
bool return_counts = context.Attr<bool>("return_counts");

if (axis_vec.empty()) {
framework::VisitDataTypeSmall(
framework::VisitDataTypeTiny(
data_type,
UniqueFlattendTensorFunctor<DeviceContext, T>(
context, *x, out, return_index, return_inverse, return_counts));
} else {
int axis = axis_vec[0];
framework::VisitDataTypeSmall(
framework::VisitDataTypeTiny(
data_type, UniqueDimFunctor<DeviceContext, T>(
context, *x, out, axis, return_index, return_inverse,
return_counts));
Expand Down

0 comments on commit b60ab6b

Please sign in to comment.