MCPcopy
hub / github.com/GPflow/GPflow / test_parameter_assign_validation

Function test_parameter_assign_validation

tests/gpflow/test_base.py:30–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_parameter_assign_validation() -> None:
31 with pytest.raises(tf.errors.InvalidArgumentError):
32 param = gpflow.Parameter(0.0, transform=positive())
33
34 param = gpflow.Parameter(0.1, transform=positive())
35 param.assign(0.2)
36 with pytest.raises(tf.errors.InvalidArgumentError):
37 param.assign(0.0)
38
39
40def test_cast_to_dtype_precision_issue() -> None:

Callers

nothing calls this directly

Calls 2

assignMethod · 0.95
positiveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…