Skip to content

Conversation

glenn-jocher
Copy link
Member

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

Signed-off-by: Glenn Jocher [email protected]

πŸ› οΈ 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 <[email protected]>
@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.

1 participant