Commit 5c7e6f98 authored by Xusong Wang's avatar Xusong Wang
Browse files

Fix the mismatch between compliantWith and validateModel.

* Check rank 0 operand in compliantWith
* Check hardware buffer in compliantWith
* Disallow hardware buffer for pre-1.2 model in validateModel
* Add compliance tests for rank 0 tensor and hardware buffer

Bug: 131845106
Test: NeuralNetworksTest_static
Test: NeuralNetworksTest_static_fuzzing
Test: Above tests with debug.nn.strict-slicing set to 1
Change-Id: I0e2f80f93074d15ea68ac5fd162ca9e70e128835
parent 0538dfbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment