Skip to content

Commit 925f149

Browse files
author
Yu Feng
committed
tweak
1 parent a1b50f7 commit 925f149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dnn_optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def opti_dnn(meta_data, hardware_constraints):
170170
else:
171171
data["ofmap"] = [0] * len(data["ifmap"])
172172
# scale up the ifmap to the ifmap based on the stride size.
173-
for i in range(len(data["ifmap"])-1):
174-
data["ifmap"][i] = layer["ifmap"][i]*2/layer["stride"]
173+
for j in range(len(data["ifmap"])-1):
174+
data["ifmap"][j] = layer["ifmap"][j]*2/layer["stride"]
175175
data["ofmap"][j] = layer["ifmap"][j]/layer["stride"]
176176

177177
# the last element is ofmap channel, so treat it separately

0 commit comments

Comments
 (0)