You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ef83646
Browse filesBrowse the repository at this point in the historyBrowse files
Performance
- rens.py: pre-compute base = x@C1.T + u@D12.T + bv outside the per-neuron
loop; divide by lam_diag once; drop w.clone() and v tensor
- renode.py: same pattern – pre-compute base = x@C1.T + u@D12.T + bv,
remove w.clone(), drop unused v tensor
CPU/GPU device portability
- implicit.py: torch.eye(2*nx) → device=self.X.device in both forward paths;
torch.Tensor(torch.randn(...)) → torch.randn(...)
- hinf.py (linear): self.Ix = torch.eye(nx) → register_buffer so .to('cuda')
moves it automatically
- lipschitz.py: all torch.eye/zeros in forward() now carry device=self.A.device
- lyap.py: torch.eye(A.size(0)) → device=A.device in both Lyapunov classes
- regularizations.py: torch.eye(mat.shape[0]) → device=mat.device
- integrators.py: remove mutable default args torch.zeros(1)/torch.Tensor(1);
default to None and lazily create zero tensor from u_batch device/dtype;
applies to RK4Simulator, RK45Simulator and Sim_discrete
Housekeeping
- .gitignore: exclude docs/_build/, docs/_static/, docs/_sources/, docs/*.html
- translate all remaining French comments/docstrings to English across
utils/data.py, utils/misc.py, preprocessing/scalers.py, linalg/utils.py,
integrators/integrators.py, train/train.py, linearization/feedbacklin.py,
layers/dd.py, tests/models/linearization/test_flnssm.py
https://claude.ai/code/session_017mH337zq1P8SP5zCakWnn8
0 commit comments