We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7674d9 commit 70bd112Copy full SHA for 70bd112
tests/test_fmmd.py
@@ -1,3 +1,4 @@
1
+import pytest
2
import numpy as np
3
import tensorflow as tf
4
@@ -30,14 +31,18 @@ def test_fmmd():
30
31
32
33
def test_kernel_fct():
34
+ tf.config.experimental_run_functions_eagerly(True)
35
fct = _get_optim_function(Xs, Xt, kernel="linear")
- fct(tf.identity(np.ones(6)))
-
36
+ with pytest.raises(Exception) as excinfo:
37
+ fct(tf.identity(np.ones(6)))
38
+
39
fct = _get_optim_function(Xs, Xt, kernel="rbf")
40
41
42
43
fct = _get_optim_function(Xs, Xt, kernel="poly")
44
45
46
47
48
0 commit comments