Skip to content

Commit cc8f8ec

Browse files
author
viv-eth
committed
[DeeployTest] Fix input/output indexing error by zipping input names and arrays
1 parent 8128a14 commit cc8f8ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DeeployTest/generateNetwork.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,11 @@
122122

123123
platform, signProp = mapPlatform(args.platform)
124124

125-
for index, name in enumerate(inputs.files):
125+
for index, (name, num) in enumerate(zip(inputs.files, test_inputs)):
126126
# WIESP: Do not infer types and offset of empty arrays
127127
num = test_inputs[index]
128128
if np.prod(num.shape) == 0:
129129
continue
130-
num = test_inputs[index]
131130
defaultType = manual_types.get(name, PointerClass(int8_t))
132131
defaultOffset = manual_offsets.get(name, 0)
133132
autoInfer = name not in manual_keys

0 commit comments

Comments
 (0)