summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--neural_style.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neural_style.py b/neural_style.py
index 936abce..62875f6 100644
--- a/neural_style.py
+++ b/neural_style.py
@@ -551,7 +551,7 @@ def normalize(weights):
denom = sum(weights)
if denom > 0.:
return [float(i) / denom for i in weights]
- else: return [0.]
+ else: return [0. for _ in weights]
def maybe_make_directory(dir_path):
if not os.path.exists(dir_path):