Commit 9390c3a
Fix loading of single-input/output models (closes #461)
Keras serializes a single connection in input_layers/output_layers as
a flat ["layer", node_idx, tensor_idx], but multiple connections as a
list of such triples. The previous code used create_vector for both,
which iterated each element of the flat form and tried to parse a
string/int as an inbound node, failing with "invalid format for
inbound node" - the exact error from the README example.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8b7a3d1 commit 9390c3a
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
314 | 324 | | |
315 | 325 | | |
316 | 326 | | |
| |||
369 | 379 | | |
370 | 380 | | |
371 | 381 | | |
372 | | - | |
373 | | - | |
| 382 | + | |
374 | 383 | | |
375 | | - | |
376 | | - | |
| 384 | + | |
377 | 385 | | |
378 | 386 | | |
379 | 387 | | |
| |||
0 commit comments