()
| 218 | |
| 219 | |
| 220 | def test_construct_parameter_with_variable_shape() -> None: |
| 221 | parameter = gpflow.Parameter([[1, 2, 3]], shape=[None, None]) |
| 222 | |
| 223 | values: Sequence[AnyNDArray] = [ |
| 224 | np.ones((0, 0), dtype=default_float()), |
| 225 | np.ones((1, 3), dtype=default_float()), |
| 226 | np.ones((3, 1), dtype=default_float()), |
| 227 | np.ones((3, 4), dtype=default_float()), |
| 228 | ] |
| 229 | |
| 230 | for value in values: |
| 231 | parameter.assign(value) |
| 232 | np.testing.assert_equal(value, parameter.numpy()) |
| 233 | |
| 234 | |
| 235 | def test_construct_parameter_with_variable_shape__different_constrained_shape() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…