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

Defer tensorflow import #89

Open
andrewyates opened this issue Sep 2, 2020 · 0 comments
Open

Defer tensorflow import #89

andrewyates opened this issue Sep 2, 2020 · 0 comments

Comments

@andrewyates
Copy link
Member

Importing tensorflow takes a non-trivial amount of time; about 10s in my environment. This is inconvenient when running commands like rerank.print_config that would otherwise return (nearly) instantly.

To speed things up, we can use LazyLoader to avoid importing TF until it's actually used, such as when running a TF reranker.

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

No branches or pull requests

1 participant