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

import re #9535

Merged
merged 2 commits into from
Sep 21, 2022
Merged

import re #9535

merged 2 commits into from
Sep 21, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 21, 2022

Signed-off-by: Glenn Jocher glenn.jocher@ultralytics.com

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Refactor of TensorFlow.js export in export.py.

πŸ“Š Key Changes

  • Moved import re to the top of the file aligning with best practices.
  • Removed now redundant import re from inside the export_tfjs function.

🎯 Purpose & Impact

  • ✨ Better Code Organization: Global imports improve readability and maintainability.
  • πŸš€ Potential Performance Improvement: Although minimal, globally importing modules can sometimes reduce repeated import overhead inside functions.
  • πŸ” Non-impactful for Users: These changes do not affect the features or performance from an end-user perspective.

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@glenn-jocher glenn-jocher self-assigned this Sep 21, 2022
@glenn-jocher glenn-jocher merged commit 999482b into master Sep 21, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch September 21, 2022 21:08
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.

None yet

1 participant