Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not import TensorFlow/NengoDL unless needed #268

Open
hunse opened this issue Jan 15, 2020 · 0 comments
Open

Do not import TensorFlow/NengoDL unless needed #268

hunse opened this issue Jan 15, 2020 · 0 comments

Comments

@hunse
Copy link
Collaborator

hunse commented Jan 15, 2020

The TensorFlow import is pretty slow. Right now we import it just to check if it's there, so that we can set the HAS_TF variable accordingly. Ideally, we would only be doing anything with TensorFlow/NengoDL if the user does something that asks for it. For example, if the user instantiates a LoihiSpikingRectifiedLinear neuron, then we might want to make sure the nengo_dl builders get added then (I feel like I've done this somewhere, but it's not in master).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant