Skip to content

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