Skip to content

Commit

Permalink
Revert D37670913 "[fbgemm] Use std::fma in tail of Fused8BitRowwiseQu…
Browse files Browse the repository at this point in the history
…antizedSBFloatToFloatOrHalfAvx2" (pytorch#1222)

Summary: Pull Request resolved: pytorch#1222

Reviewed By: Liang-Dong

Differential Revision: D38155592

fbshipit-source-id: 025fc4445029a104fe38e76ad317a2e0dfb6ede7
  • Loading branch information
swolchok authored and facebook-github-bot committed Jul 28, 2022
1 parent cca200c commit 4812758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QuantUtilsAvx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2164,8 +2164,8 @@ void Fused8BitRowwiseQuantizedSBFloatToFloatOrHalfAvx2(
}

for (; col < output_columns; ++col) {
float output_value = std::fma(
input_row[col], input_row_scale_bias[0], input_row_scale_bias[1]);
float output_value =
input_row[col] * input_row_scale_bias[0] + input_row_scale_bias[1];
if (std::is_same<OutputType, float>()) {
output_row[col] = output_value;
} else {
Expand Down

0 comments on commit 4812758

Please sign in to comment.