Skip to content

Commit fc3aa14

Browse files
authored
Arm backend: Fix tosa_spec issue in op_gather (pytorch#16829)
A recent commit removed it from TosaArg, preferring instead to use the node_visitors self.tosa_spec. Signed-off-by: Erik Lundell <erik.lundell@arm.com>
1 parent 07167a0 commit fc3aa14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎backends/arm/operators/op_tosa_gather.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def define_node(
5252
self.target,
5353
[indices],
5454
[ts.DType.INT32],
55-
output.tosa_spec,
55+
self.tosa_spec,
5656
)
5757
validate_valid_dtype(
5858
self.target,
@@ -64,7 +64,7 @@ def define_node(
6464
ts.DType.FP16,
6565
ts.DType.FP32,
6666
],
67-
output.tosa_spec,
67+
self.tosa_spec,
6868
)
6969

7070
attr = ts.TosaSerializerAttribute()

0 commit comments

Comments
 (0)