Skip to content

Commit

Permalink
Fix if else condition to support Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwang Moo Yi authored Oct 10, 2018
1 parent 5530e47 commit 8990e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networks/lift.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, sess, config, dataset, force_mean_std=None):
self.mean = {}
self.std = {}
# Load values if they already exist
if force_mean_std:
if force_mean_std is not None:
self.mean = force_mean_std["mean"]
self.std = force_mean_std["std"]
elif self.config.mean_std_type == "hardcoded":
Expand Down

0 comments on commit 8990e22

Please sign in to comment.