aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/high_level_command_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/high_level_command_stream.py')
-rw-r--r--ethosu/vela/high_level_command_stream.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethosu/vela/high_level_command_stream.py b/ethosu/vela/high_level_command_stream.py
index b8a19f50..a5372d73 100644
--- a/ethosu/vela/high_level_command_stream.py
+++ b/ethosu/vela/high_level_command_stream.py
@@ -21,6 +21,7 @@ import numpy as np
from .numeric_util import round_up_divide
from .operation import NpuBlockType
+from .operation import Op
from .range_set import AccessDirection
from .range_set import MemoryAccessSet
from .range_set import MemoryRangeSet
@@ -236,6 +237,11 @@ class NpuStripe(Command):
),
AccessDirection.Read,
)
+ if self.scale_tensor is not None and self.scale_tensor.ops[0].type == Op.DMA:
+ res.add(
+ self.scale_tensor.get_address_ranges_for_coordinates([0], self.scale_tensor.shape),
+ AccessDirection.Read,
+ )
# Add read access to SHRAM by any LUT-s
for tens in self.ps.intermediates:
if tens.purpose == TensorPurpose.LUT and tens.mem_area == MemArea.Shram: