summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-10 14:18:59 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-10 14:18:59 +0100
commit1b4874750ab1efa5874947651fe5a04ffc2505f1 (patch)
treec3bd733184751852abdd227a7a6112eba361b196
parentc30f09a76aa696c681889d370173a7ce8afabc9d (diff)
graph magic
-rw-r--r--cli/app/search/live.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py
index 2fd4160..e96f0f1 100644
--- a/cli/app/search/live.py
+++ b/cli/app/search/live.py
@@ -222,7 +222,7 @@ class Interpolator:
encoding_shape = [1,] + encoding_latent.get_shape().as_list()[1:]
print(encoding_shape)
- encoding_shape_placeholder = tf.constant(np.zeros(encoding_shape))
+ encoding_shape_placeholder = tf.constant(np.zeros(encoding_shape, dtype=np.float32))
encoding_stored = LerpParam('encoding_stored', shape=encoding_shape, datatype="encoding")
encoding_mix = LerpParam('encoding_mix', a_in=encoding_latent, b_in=encoding_shape_placeholder, shape=encoding_shape, datatype="encoding")
# use the placeholder to redirect parts of the graph.