From 1b4874750ab1efa5874947651fe5a04ffc2505f1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 10 Jan 2020 14:18:59 +0100 Subject: graph magic --- cli/app/search/live.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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. -- cgit v1.2.3-70-g09d2