Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

QuantizedElemwiseMulOpShape accesses out of bound elements #18034

@leezu

Description

@leezu

Description

MKLDNN QuantizedElemwiseMulOpShape accesses out of bound elements in line 64 during quantized_elemwise_mul test.

https://github.com/apache/incubator-mxnet/blob/ab4f7f6a7335e88034edcf61402aec170cdca5fd/src/operator/quantization/quantized_elemwise_mul.cc#L63-L65

Preventing that invalid access by adding out_attrs->size() > quantized_elemwise_mul::kOutMin to the if condition, leads to errors in infer_shape_pass.

CI with updated toolchain (ie #17984) catches the bug. See #17987 for instructions to reproduce: use recent gcc and build in debug build

CC: @xinyu-intel

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions