Skip to content

fix(training): release the training session on errors and keep its session builder alive - #659

Merged
decahedron1 merged 3 commits into
pykeio:mainfrom
onuralpszr:fix-trainer-keeps-builder
Oct 3, 2026
Merged

decahedron1 merged 3 commits into
pykeio:mainfrom
onuralpszr:fix-trainer-keeps-builder

Conversation

@onuralpszr

Copy link
Copy Markdown
Contributor

Trainer leaked the training session when reading its input or output names failed, and it dropped the SessionBuilder right after creating the session even though ONNX Runtime keeps using the builder's custom operators, logger and thread manager, so the session is now released on those errors and the builder is stored in the trainer, with Debug written by hand since SessionBuilder does not implement it.

@decahedron1
decahedron1 merged commit 085eb2a into pykeio:main Oct 3, 2026
18 checks passed
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.

2 participants