Skip to content

[codex] Remove hard TensorFlow dependency#1

Draft
jvietorisz wants to merge 1 commit into
masterfrom
codex/remove-hard-tensorflow-dependency
Draft

[codex] Remove hard TensorFlow dependency#1
jvietorisz wants to merge 1 commit into
masterfrom
codex/remove-hard-tensorflow-dependency

Conversation

@jvietorisz
Copy link
Copy Markdown
Collaborator

What changed

This PR removes the hard TensorFlow install requirement from M-LOOP and makes the TensorFlow-backed neural-net module load lazily.

Why

Downstream projects that use non-neural-net controllers should be able to install and import M-LOOP without pulling in TensorFlow. The previous packaging metadata and eager import path made TensorFlow a required dependency even when those code paths were never used.

Impact

Projects can depend on M-LOOP for non-neural-net workflows without requiring TensorFlow at install time. TensorFlow-backed neural-net functionality still remains behind the lazy import path and will only be needed when that learner is actually constructed.

Root cause

setup.py declared TensorFlow as an unconditional install dependency, and mloop.learners imported mloop.neuralnet eagerly at module import time.

Validation

I verified the local diff is scoped to setup.py and mloop/learners.py only.
I did not run the full test suite in this environment because the checkout did not have the scientific Python dependencies installed for a meaningful import/test run.

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