From 04ce34c07cf7fcd0a8ddb29df6f59846862b24f2 Mon Sep 17 00:00:00 2001 From: Charles Xu Date: Tue, 23 Jun 2020 12:42:28 +0200 Subject: MLBEDSW-2340: Make the tensor address default None Signed-off-by: Charles Xu Change-Id: I53d9d56acee57cff208dccb4822c1f1a461c416d --- ethosu/vela/tensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ethosu/vela/tensor.py') diff --git a/ethosu/vela/tensor.py b/ethosu/vela/tensor.py index eda21c9c..bc0597f6 100644 --- a/ethosu/vela/tensor.py +++ b/ethosu/vela/tensor.py @@ -291,7 +291,7 @@ class Tensor: self.weight_compressed_offsets = [] self.storage_rounding_quantum = (1, 1, 1, 1) self.brick_size = (1, 1, 1, 1) - self.address = 0 # start address of tensor. will be filled in by tensor allocator + self.address = None # start address of tensor. will be filled in by tensor allocator self.element_size_bytes = 0 # quantization parameters @@ -323,7 +323,7 @@ class Tensor: res.alignment = self.alignment res.bandwidth_compression_scale = self.bandwidth_compression_scale res.storage_rounding_quantum = self.storage_rounding_quantum - res.address = 0 + res.address = None if self.quantization is not None: res.quantization = self.quantization.clone() -- cgit v1.2.1