MCPcopy
hub / github.com/GPflow/GPflow / test_bug_277_regression

Function test_bug_277_regression

tests/gpflow/test_functions.py:269–276  ·  view source on GitHub ↗

See github issue #277. This is a regression test.

()

Source from the content-addressed store, hash-verified

267
268
269def test_bug_277_regression() -> None:
270 """
271 See github issue #277. This is a regression test.
272 """
273 model1, model2 = Linear(), Linear()
274 assert model1.b.numpy() == model2.b.numpy()
275 model2.b.assign([1.0])
276 assert not model1.b.numpy() == model2.b.numpy()
277
278
279_model_classes = [

Callers

nothing calls this directly

Calls 2

LinearClass · 0.90
assignMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…