nengo / keras-lmu

Keras implementation of Legendre Memory Units
https://www.nengo.ai/keras-lmu/
Other
207 stars 35 forks source link

Update test for TF 2.7 #45

Closed drasmuss closed 2 years ago

drasmuss commented 2 years ago

No changes required in the code itself, but one of the tests was failing. The test was using seeded weight initializers to ensure that different layers had the same weights, but that behaviour appears to be broken in TF 2.7 (see https://github.com/keras-team/keras/issues/15586). So I switched the way the initialization works in that test so that it doesn't depend on TensorFlow's RNG.