nengo / nengo-loihi

Run Nengo models on Intel's Loihi chip
https://www.nengo.ai/nengo-loihi/
Other
35 stars 12 forks source link

Cifar10 Example produces attribute error in TF compile call #313

Closed xchoo closed 2 years ago

xchoo commented 3 years ago

To replicate this error:

The error:

This issue was introduced in TF 2.2.0, and has been replicated in Python 3.6+. While it doesn't cause an issue for the docs build (because it uses pre-trained weights), this error will prevent users from training the model themselves.

This issue can be resolved by returning the exact function instance (instead of using partial), or by using a lambda function (but one of the code style checkers / formatters will complain).

tbekolay commented 2 years ago

Fixed in #315.