aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/test
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2020-06-17 14:53:11 +0100
committerTim Hall <tim.hall@arm.com>2020-06-18 17:53:52 +0100
commitc8310b1432f7a77df3c95e8ecf8248c8a953b411 (patch)
treeeaddfe6ae80db3c85ddca824e0fc70739d05a9d5 /ethosu/vela/test
parent10a6618784aae35de389e0291fd2d78cbfa03bb7 (diff)
downloadethos-u-vela-c8310b1432f7a77df3c95e8ecf8248c8a953b411.tar.gz
MLBEDSW-2528: MLCE-219: Custom operator pass through
- Fixed custom operator pass through - Added error printing functions for operators and tensor - Minor cleanup of custom exception handling Signed-off-by: Tim Hall <tim.hall@arm.com> Change-Id: Idf295df1e4c544381dc480244d880c32fb285e38
Diffstat (limited to 'ethosu/vela/test')
-rw-r--r--ethosu/vela/test/test_model_reader.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/ethosu/vela/test/test_model_reader.py b/ethosu/vela/test/test_model_reader.py
index ee9a51e8..23e7e90b 100644
--- a/ethosu/vela/test/test_model_reader.py
+++ b/ethosu/vela/test/test_model_reader.py
@@ -26,15 +26,7 @@ def test_read_model_incorrect_extension(tmpdir):
model_reader.read_model("no_tflite_file.txt", model_reader.ModelReaderOptions())
-def test_read_model_corrupt_contents(tmpdir):
- # Tests read_model with a corrupt .tflite file
- fname = tmpdir.join("corrupt.tflite")
- fname.write("abcde1234")
- with pytest.raises(InputFileError):
- model_reader.read_model(fname.strpath, model_reader.ModelReaderOptions())
-
-
def test_read_model_file_not_found(tmpdir):
# Tests read_model with a .tflite file that does not exist
- with pytest.raises(InputFileError):
+ with pytest.raises(FileNotFoundError):
model_reader.read_model("non_existing.tflite", model_reader.ModelReaderOptions())