Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: workaround for MS STL breaking change #1958

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/common/layer_normalization_pd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ struct layer_normalization_fwd_pd_t : public layer_normalization_pd_t {
+ n_binary_po_inputs();
}
int n_outputs() const override {
return 1 + 2 * (!stats_are_src()) * is_training();
// Originally as '1 + 2 * (!stats_are_src()) * is_training()',
// had to be worked around MSVC bug not copying inlined bodies
// of stats_are_src() and is_training().
return (!stats_are_src() && is_training()) ? 3 : 1;
spalicki marked this conversation as resolved.
Show resolved Hide resolved
}

protected:
Expand Down