hit warning lines
@@ -17,7 +17,7 @@ from numpy.random import randn
import tensorflow as tf
import pytest
import gpflow
-from gpflow import densities
+from gpflow import densities, settings
from gpflow.test_util import session_tf
from scipy.stats import multivariate_normal as mvn
from numpy.testing import assert_allclose
@@ -40,12 +40,12 @@ def test_multivariate_normal(session_tf, x, mu, cov_sqrt):
tf.convert_to_tensor(mu),
tf.convert_to_tensor(L))
else:
+ x_tf = tf.placeholder(settings.float_type)
+ mu_tf = tf.placeholder(settings.float_type)
gp_result = densities.multivariate_normal(
- tf.convert_to_tensor(x),
- tf.convert_to_tensor(mu),
- tf.convert_to_tensor(L))
+ x_tf, mu_tf, tf.convert_to_tensor(L))
- gp_result = session_tf.run(gp_result)
+ gp_result = session_tf.run(gp_result, feed_dict={x_tf: x, mu_tf: mu})
if mu.shape[1] > 1:
if x.shape[1] > 1:
