From 7519d50c993d60faa1ea09e56abfbf17cef23b49 Mon Sep 17 00:00:00 2001 From: James Peet Date: Mon, 19 Jul 2021 16:47:58 +0100 Subject: MLBEDSW-4892: Fix crash affecting biases without quantization. Remove quant_values attribute from Tensor class. It only needs a single values attribute, holding either quantized or unquantized values as appropriate. Change-Id: Ie96f80ac58061b6077e0f7048dc60209fdfbcafa Signed-off-by: James Peet --- ethosu/vela/tosa_reader.py | 1 - 1 file changed, 1 deletion(-) (limited to 'ethosu/vela/tosa_reader.py') diff --git a/ethosu/vela/tosa_reader.py b/ethosu/vela/tosa_reader.py index e51ead1d..364d9a63 100644 --- a/ethosu/vela/tosa_reader.py +++ b/ethosu/vela/tosa_reader.py @@ -192,7 +192,6 @@ class TosaSubgraph: fname = decode_str(tens_data.NpyFilename()) tens.values = np.load(os.path.join(file_path, fname)) assert list(tens.values.shape) == tens.shape - tens.quant_values = tens.values except (struct.error, TypeError, RuntimeError) as e: print(f'Error: Invalid npy file. Got "{e}" ') sys.exit(1) -- cgit v1.2.1