MLBEDSW-2340: Make the tensor address default None
Signed-off-by: Charles Xu <charles.xu@arm.com>
Change-Id: I53d9d56acee57cff208dccb4822c1f1a461c416d
diff --git a/ethosu/vela/tensor.py b/ethosu/vela/tensor.py
index eda21c9..bc0597f 100644
--- a/ethosu/vela/tensor.py
+++ b/ethosu/vela/tensor.py
@@ -291,7 +291,7 @@
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 @@
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()