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

refactor: restructuring packaging #83

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

myungjin
Copy link
Contributor

Description

Currently, world_manager.py and world_communicator.py are copied into torch package and they become part of torch after installing multiworld. This is inappropriate. We keep those files under multiworld package, but we patch pytorch such that the variables (_worlds, _World, etc) required by multiworld are exposed by patching init.py in distributed module. Therefore, pytorch patch file is updated and all other necessary changes are made to ensure that all the examples can be executed.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Currently, world_manager.py and world_communicator.py are copied
into torch package and they become part of torch after installing
multiworld. This is inappropriate. We keep those files under multiworld
package, but we patch pytorch such that the variables (_worlds, _World, etc)
required by multiworld are exposed by patching __init__.py in distributed
module. Therefore, pytorch patch file is updated and all other necessary
changes are made to ensure that all the examples can be executed.
@myungjin myungjin merged commit 2730de7 into cisco-open:main Aug 21, 2024
1 check passed
@myungjin myungjin deleted the package_restructure branch August 21, 2024 02:26
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