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

Remove imports from factory.__init__ #516

Merged
merged 2 commits into from
Nov 30, 2022

Conversation

Louis-Dupont
Copy link
Contributor

This tends to create circular import loops because most of these factories themselves import modules from training, while some of the training modules import themselves factories.
Not importing it in the init prevents all these factories to be instantiated together, creating these hard to debug import loops

@dagshub
Copy link

dagshub bot commented Nov 27, 2022

Copy link
Contributor

@shaydeci shaydeci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Louis-Dupont Louis-Dupont merged commit 3b15076 into master Nov 30, 2022
@Louis-Dupont Louis-Dupont deleted the hotfix/SG-000-remove_imports_from_factories branch November 30, 2022 15:50
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

Successfully merging this pull request may close these issues.

2 participants