Skip to content

Commit

Permalink
Exit if failed to load model
Browse files Browse the repository at this point in the history
  • Loading branch information
Saumitro Dasgupta committed May 16, 2016
1 parent 5f657da commit ceca9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/imagenet/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def main():

# Load the network
net = load_model(args.model)
if net is None:
exit(-1)

# Load the dataset
data_spec = models.get_data_spec(model_instance=net)
Expand Down

0 comments on commit ceca9d8

Please sign in to comment.