summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProGamerGov <ProGamerGov@users.noreply.github.com>2017-01-05 18:21:23 -0700
committerGitHub <noreply@github.com>2017-01-05 18:21:23 -0700
commit8e444ab2ad4dcbec48c1fe775c4512fa4ed390a3 (patch)
tree1c34cdc4a14f288d7bd81d3c530f5ccffd39d4d3
parentaf50ae73cfe6f1533e5390e5131e25c6d322dc8a (diff)
Replaced outdated tf.pack with tf.stack
This resolves the issue posted in https://github.com/cysmith/neural-style-tf/issues/18. tf.pack was replaced by tf.stack in 2016.
-rw-r--r--neural_style.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/neural_style.py b/neural_style.py
index 8d40e1b..be5a95e 100644
--- a/neural_style.py
+++ b/neural_style.py
@@ -380,8 +380,8 @@ def mask_style_layer(a, x, mask_img):
tensors = []
for _ in range(d.value):
tensors.append(mask)
- mask = tf.pack(tensors, axis=2)
- mask = tf.pack(mask, axis=0)
+ mask = tf.stack(tensors, axis=2)
+ mask = tf.stack(mask, axis=0)
mask = tf.expand_dims(mask, 0)
a = tf.mul(a, mask)
x = tf.mul(x, mask)