Skip to content
Commit 762d3acb authored by Tim Hall's avatar Tim Hall
Browse files

MLBEDSW-7832: test_tflite_model_semantic converting array to scalar

 - The problem is that the axis value can be either a scalar or an
array containing a single element
 - The solution is to check the length of the shape because the size
attribute returns the same value for both cases
 - This did not show up before because pytest warnings were not being
treated as errors
 - Removed pre-commit pytest option that caused tests to be searched for
from the root directory
 - Updated pyproject.toml pytest options to explicitly specify the test
directories, and to treat warnings as errors

Change-Id: I037054768e5c34f253b6062eadba1c3419ff65e4
parent 2d54e5cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment