nengo / nengo-dl

Deep learning integration for Nengo
https://www.nengo.ai/nengo-dl
Other
88 stars 22 forks source link

Add TF2.0 compatibility #91

Closed drasmuss closed 5 years ago

drasmuss commented 5 years ago

This allows Nengo DL to run with TF 2.0. Note that this is purely a compatibility fix, it does not take advantage of the new features in TF 2.0 (that will come in a future PR).

Separated into a couple commits:

dd3be87 is just the result of running the automated script tf_upgrade_v2 --intree nengo_dl --outtree nengo_dl (and then 5354764 fixes some formatting issues that introduces).

ed13d2c fixes some additional upgrade issues not caught by the automatic tool (all tests are passing in TF2.0 at this point).

40550ad adds backwards compatibility back to TF 1.13. This is pretty easy to do, as that release includes a lot of backwards compatibility already in the tf.compat.v1 module.

67faaf8 adds more backwards compatibility, back to where we were before (TF 1.4). A bit more complicated, but not too bad, so seems worthwhile for now.

10c8bac just sets some more seeds in examples, where I noticed non-deterministic behaviour while testing this.