Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliang2258 committed Oct 1, 2022
1 parent 3f22ed5 commit 389c3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/slice_op.cc
Expand Up @@ -156,7 +156,7 @@ class SliceOp : public framework::OperatorWithKernel {
auto input_data_type =
framework::OperatorWithKernel::IndicateVarDataType(ctx, "Input");
auto vec_dims = phi::vectorize(in_tensor.dims());
bool not_all_zero_dim = std::all_of(
bool not_all_zero_dims = std::all_of(
vec_dims.cbegin(), vec_dims.cend(), [](int64_t i) { return i != 0; });
if (!not_all_zero_dims && this->CanMKLDNNBeUsed(ctx, input_data_type)) {
// OneDNN uses blocking format, which cannot be always supported with
Expand Down

0 comments on commit 389c3be

Please sign in to comment.