Skip to content

Run PyTorch models in eval mode by default.#44

Merged
danielfleischer merged 1 commit into
mainfrom
mzweilin/pytorch_eval_mode
Jun 9, 2026
Merged

Run PyTorch models in eval mode by default.#44
danielfleischer merged 1 commit into
mainfrom
mzweilin/pytorch_eval_mode

Conversation

@mzweilin

@mzweilin mzweilin commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

This PR switches PyTorch models to run in eval mode prior to result comparison.

Certain layers, such as BatchNorm, exhibit different behaviors depending on whether the model is in training or eval mode. Since our focus is exclusively on inference workloads, switching to eval mode ensures consistent and accurate comparisons.

Signed-off-by: Weilin Xu <weilin.xu@intel.com>

@danielfleischer danielfleischer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, thank you.

@danielfleischer danielfleischer merged commit 1aca67e into main Jun 9, 2026
2 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