Skip to content

Commit 16d9bcd

Browse files
Di Wufacebook-github-bot
authored andcommitted
Fix test_avg_pool3d issue in pytorch_paralleltbb_linux_xenial_py3_6_gcc5_4_test (#36103)
Summary: Fix parallel execution issue introduced by #35740 Pull Request resolved: #36103 Test Plan: test_quantized.py Differential Revision: D20879323 Pulled By: allwu fbshipit-source-id: a2deaaf5c933cbef3096a399c19c44d28935bd69
1 parent 7920a97 commit 16d9bcd

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

aten/src/ATen/native/quantized/cpu/kernels/QuantizedOpKernels.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,8 @@ void do_avg_pool_nhwc_on_AVX2(
856856
constexpr int cb_size = 16;
857857
constexpr int vec_width = Vec256<T>::size() / 4;
858858
constexpr int cb_step = cb_size * vec_width;
859-
static Vec256<int32_t> acc_buffer[cb_size];
860-
static Vec256<float> acc_buffer_fp[cb_size];
859+
Vec256<int32_t> acc_buffer[cb_size];
860+
Vec256<float> acc_buffer_fp[cb_size];
861861

862862
if (vec_width == 8) {
863863
for (int c = c_start; c < csize; c += cb_step) {

test/quantization/test_quantized.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,6 @@ def test_avg_pool2d_nhwc(self, X, kernel, stride, padding, ceil_mode, count_incl
890890
message=error_message.format(name + '.zero_point', scale,
891891
X_hat.q_zero_point()))
892892

893-
@unittest.skip("Fix me! to stop breaking the builds")
894893
@given(X=hu.tensor(shapes=hu.array_shapes(min_dims=5, max_dims=5,
895894
min_side=5, max_side=10),
896895
qparams=hu.qparams(dtypes=torch.quint8)),

0 commit comments

Comments
 (0)