MCPcopy
hub / github.com/GPflow/GPflow / test_to_default_float

Function test_to_default_float

tests/gpflow/utilities/test_misc.py:47–50  ·  view source on GitHub ↗
(x: Union[float, tf.Tensor])

Source from the content-addressed store, hash-verified

45 ],
46)
47def test_to_default_float(x: Union[float, tf.Tensor]) -> None:
48 default_float_x = to_default_float(x)
49 _x = x if isinstance(x, float) else float(x.numpy())
50 assert default_float_x.numpy() == _x
51
52
53@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

to_default_floatFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…