diff options
author | Jacob Bohlin <jacob.bohlin@arm.com> | 2020-11-27 14:52:06 +0100 |
---|---|---|
committer | tim.hall <tim.hall@arm.com> | 2020-11-27 15:13:14 +0000 |
commit | e3de4e553a4d7054cf34d26ac9232d6972f5a719 (patch) | |
tree | f08f347525341dc0b4f766490424792db29b19ef /ethosu | |
parent | 333770a695b72cb4930361e00b82924db8e501fa (diff) | |
download | ethos-u-vela-e3de4e553a4d7054cf34d26ac9232d6972f5a719.tar.gz |
MLBEDSW-3633: SplitV incorrectly placed on CPU
Minor fix in SPLITV tensor indexing for supported operators check.
Signed-off-by: Jacob Bohlin <jacob.bohlin@arm.com>
Change-Id: If8fa702bfbb25a4a7e5bdb136a19ef72eec7e1c2
Diffstat (limited to 'ethosu')
-rw-r--r-- | ethosu/vela/operation.py | 2 | ||||
-rw-r--r-- | ethosu/vela/supported_operators.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/operation.py b/ethosu/vela/operation.py index 9f7d544b..5cb4b6ae 100644 --- a/ethosu/vela/operation.py +++ b/ethosu/vela/operation.py @@ -235,7 +235,7 @@ class Op(Enum): SparseToDense = OperatorInfo() Split = OperatorInfo(indices=SPLIT_IFM_INDICES) SplitSliceRead = OperatorInfo(indices=IFM_INDICES) - SplitV = OperatorInfo(indices=IFM_IFM2_INDICES) + SplitV = OperatorInfo(indices=IFM_INDICES) Sqrt = OperatorInfo() Square = OperatorInfo() SquaredDifference = OperatorInfo() diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py index f7dfec27..a1fcf6ab 100644 --- a/ethosu/vela/supported_operators.py +++ b/ethosu/vela/supported_operators.py @@ -708,7 +708,7 @@ class SupportedOperators: @staticmethod def constraint_splitv_inferred(op): "Only one size is allowed to be inferred" - sizes = op.ifm2.values + sizes = op.inputs[1].values valid = np.count_nonzero(sizes == -1) <= 1 return valid, f"Op has multiple inferred sizes (-1): {sizes}" |