Commit d84f1bb
fix: add lib accessors so examples compile
basic_usage.rs and mlp_router.rs called methods that didn't exist on the
public API (8x E0599). Add thin 1:1 accessor/convenience wrappers:
- Orchestrator::current_project() -> delegates to context manager
- MLP::input_size() / MLP::output_size() -> getters for private fields
- MLP::train_step() -> backward + update, returns the step loss
cargo check --examples is now clean (lib was already fine).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 85f607b commit d84f1bb
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
149 | 167 | | |
150 | 168 | | |
151 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments