Skip to content

Commit

Permalink
Don't crash if older saved network, just don't compile
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Oct 3, 2018
1 parent 714b30e commit cb75852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conx/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4323,7 +4323,7 @@ def load_network(dir):
for connection in config["connections"]:
from_name, to_name = connection
network.connect(from_name, to_name)
if config["compile_args"]:
if "compile_args" in config and config["compile_args"]:
network.compile(**config["compile_args"])
if network.model:
network.load_weights(dir)
Expand Down

0 comments on commit cb75852

Please sign in to comment.