diff options
author | Charles Xu <charles.xu@arm.com> | 2020-06-23 12:42:28 +0200 |
---|---|---|
committer | Charles Xu <charles.xu@arm.com> | 2020-07-02 09:38:12 +0200 |
commit | 04ce34c07cf7fcd0a8ddb29df6f59846862b24f2 (patch) | |
tree | f6e9e5aa5a6e01beb7058c9849f771fa52a75bff /ethosu/vela/tensor.py | |
parent | 5f47c0511d3fc6b54aba331b58c85c3970b61718 (diff) | |
download | ethos-u-vela-04ce34c07cf7fcd0a8ddb29df6f59846862b24f2.tar.gz |
MLBEDSW-2340: Make the tensor address default None
Signed-off-by: Charles Xu <charles.xu@arm.com>
Change-Id: I53d9d56acee57cff208dccb4822c1f1a461c416d
Diffstat (limited to 'ethosu/vela/tensor.py')
-rw-r--r-- | ethosu/vela/tensor.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |