aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/operation.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/operation.py')
-rw-r--r--ethosu/vela/operation.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/ethosu/vela/operation.py b/ethosu/vela/operation.py
index f36e61c6..a25574a6 100644
--- a/ethosu/vela/operation.py
+++ b/ethosu/vela/operation.py
@@ -248,12 +248,10 @@ input and output tensors, as well as an attribute dictionary."""
end_mask = self.attrs["end_mask"]
new_axis_mask = self.attrs["new_axis_mask"]
shrink_axis_mask = self.attrs["shrink_axis_mask"]
- # TODO: Either extend this to support these different masks or check
- # for this at an earlier stage and place the op on Cpu if needed
- assert new_axis_mask == ellipsis_mask == 0
- # shrink_axis_mask is not supported by the Operation class but the operation
+
+ # shrink_axis_mask/new_axis_mask/ellipsis_mask is not supported by the Operation class but the operation
# may have the attribute modified and handled in the graph optimization phase.
- assert shrink_axis_mask == 0
+ assert shrink_axis_mask == new_axis_mask == ellipsis_mask == 0
assert len(input_tens.shape) == len(out_tens.shape)
for idx in range(len(input_tens.shape)):