Skip to content

Commit

Permalink
a faster version of config_generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mli committed Jun 17, 2015
1 parent 3dfc7b7 commit 3827be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/network_maker/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def ConvFactory(nchannel, kernel_size=1, pad=0, stride = 1, bn = True, act = "re

def DFS(layer, table, seq):
out_layers = graph[layer]
for l in out_layers:
for l in out_layers - table:
DFS(l, table, seq)
if layer not in table:
table.add(layer)
Expand Down

0 comments on commit 3827be2

Please sign in to comment.