Skip to content

Commit

Permalink
fix exec code style
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChengmo committed Nov 9, 2020
1 parent a53b514 commit 2d87df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/modul/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def train_net(self):
if self._build_nodes[phase] is None:
continue
for node in self._build_nodes[phase]:
exec("""layer=layer.{}(node)""".format(node['class']))
exec("layer=layer.{}(node)".format(node['class']))
layer_output, extend_output = layer.generate(
self._config['mode'], self._build_param)
self._build_param['layer'][node['name']] = layer_output
Expand Down

0 comments on commit 2d87df8

Please sign in to comment.