Skip to content

Commit 910c45c

Browse files
authored
Update XNNPACK usage in Vulkan reference tests
Differential Revision: D111139443 Pull Request resolved: #20794
1 parent 69af984 commit 910c45c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

backends/vulkan/test/op_tests/conv2d_gemm_dynamic_test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ std::vector<float> conv2d_ref_xnnpack(
247247
out_min,
248248
out_max,
249249
/*flags=*/0,
250-
/*code_cache=*/nullptr,
251250
/*weights_cache=*/nullptr,
252251
&op);
253252
if (create_status != xnn_status_success || op == nullptr) {
@@ -258,7 +257,7 @@ std::vector<float> conv2d_ref_xnnpack(
258257
}
259258

260259
size_t workspace_size = 0;
261-
size_t workspace_alignment = 0;
260+
const size_t workspace_alignment = 128;
262261
size_t out_h = 0;
263262
size_t out_w = 0;
264263
const xnn_status reshape_status = xnn_reshape_convolution2d_nhwc_f32(
@@ -267,7 +266,6 @@ std::vector<float> conv2d_ref_xnnpack(
267266
static_cast<size_t>(H_in),
268267
static_cast<size_t>(W_in),
269268
&workspace_size,
270-
&workspace_alignment,
271269
&out_h,
272270
&out_w,
273271
/*threadpool=*/nullptr);

0 commit comments

Comments
 (0)