Skip to content

Remove dead code across codebase#457

Open
Anri-Lombard wants to merge 2 commits intoPufferAI:3.0from
Anri-Lombard:remove-lazy-import
Open

Remove dead code across codebase#457
Anri-Lombard wants to merge 2 commits intoPufferAI:3.0from
Anri-Lombard:remove-lazy-import

Conversation

@Anri-Lombard
Copy link

Remove unused lazy_import function (fixes #374), 40 unused pdb debug imports, and dead functions (compilable_cast, entropy_probs, nativize_observation, dist_mean) from pytorch.py and pufferl.py. All imports verified working.

This function was introduced for lazy loading ocean environments but was
replaced by direct importlib.import_module() calls. The function definition
was left behind during that refactor.

Fixes PufferAI#374
- Remove unused pdb debug imports from 40 files
- Remove dead functions from pytorch.py: compilable_cast, entropy_probs, nativize_observation
- Remove unused Categorical import from pytorch.py
- Remove unused dist_mean function from pufferl.py
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.

environment.py lazy_import() Seems to be Unused

1 participant