Skip to content

Comments

refactor: decompose PatchInferenceEngine.predict into pipelined stages#69

Merged
skaliy merged 1 commit intomainfrom
inference-dev
Feb 19, 2026
Merged

refactor: decompose PatchInferenceEngine.predict into pipelined stages#69
skaliy merged 1 commit intomainfrom
inference-dev

Conversation

@skaliy
Copy link
Member

@skaliy skaliy commented Feb 19, 2026

Split predict() into _prepare_subject, _run_inference, and _postprocess for better modularity. Add _PreparedSubject dataclass and _save_prediction helper. Switch from torch.no_grad to torch.inference_mode for faster inference.

Split predict() into _prepare_subject, _run_inference, and _postprocess
for better modularity. Add _PreparedSubject dataclass and _save_prediction
helper. Switch from torch.no_grad to torch.inference_mode for faster inference.
@skaliy skaliy merged commit e3d3f4b into main Feb 19, 2026
2 checks passed
@skaliy skaliy deleted the inference-dev branch February 19, 2026 09:41
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