commit | 2a9f593d6ca8603175c8fe79a1376893de0f222a | [log] [tgz] |
---|---|---|
author | Lev Proleev <levp@google.com> | Tue May 05 17:26:26 2020 +0100 |
committer | Lev Proleev <levp@google.com> | Thu May 07 16:53:24 2020 +0100 |
tree | 9264bf116684f109cddddb18a0a578a24dce752e | |
parent | 55bee1c40e56f690de39bae8e47a4b6f9743086c [diff] |
Fix null ptr dereference in REDUCE_* cpu implementation When asked to reduce across all dimensions, reduce would produce a zero-sized tensor without dimensions and cause segmentation fault in the implementation. The change fixes the bug by making the op output a tensor of size [1] in this case. Also, updated the bug to clarify this behaviour. Bug: 155508675 Test: NNTest_static Change-Id: Ie98d8fa2e508255fd50f6bd8184dc323ba90fac8