mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-23 22:13:38 +00:00
[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:
parent
d1354dcc83
commit
45c82eefb4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue