[OneDNN] Fix poolgrad bug (#15557)

* Fixed default dilatation value for poolgrad ops

### Description
Changed default dilatation value to 0 in poolgrad ops



### Motivation and Context
Fixes error on unit tests when --enable_training --use_dnnl flags are
active and
This commit is contained in:
Erick Muñoz 2023-04-23 08:20:26 -07:00 committed by GitHub
parent d1354dcc83
commit 45c82eefb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,8 +92,8 @@ void DnnlPoolGrad::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& node) {
}
}
// Dilatation of 1
auto dilatation = dnnl::memory::dims(kernel_shape.size(), 1);
// Default dilatation to 0
auto dilatation = dnnl::memory::dims(kernel_shape.size(), 0);
dnnl::pooling_forward::primitive_desc pool_forward_pd(dnnl_engine, dnnl::prop_kind::forward, algo, fwd_dx_md, dy_md,
strides, kernel_shape, dilatation, padding_left, padding_right);