diff options
Diffstat (limited to 'ethosu/vela/reader_util.py')
-rwxr-xr-x[-rw-r--r--] | ethosu/vela/reader_util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ethosu/vela/reader_util.py b/ethosu/vela/reader_util.py index 476b70aa..b5de8b18 100644..100755 --- a/ethosu/vela/reader_util.py +++ b/ethosu/vela/reader_util.py @@ -53,6 +53,11 @@ def fixup_tensors(input_tensors, tensors): for tens in tensors: if not tens.ops: + if tens.values is None: + tens.error( + "Tensor with no operator output connection is assumed to contain constant " + "data but no data buffer is associated with this tensor. Perhaps the network is invalid?" + ) op = Operation(Op.Const, tens.name) op.set_output_tensor(tens) |