Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst committed May 16, 2024
1 parent 45a92f3 commit a8555e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchao/csrc/cuda/fp6_llm/weight_quant.cu
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ uint8_t fp16_to_fp6(const __half a) {

if (bits >= 0b11111'0000000000u) {
throw std::invalid_argument("Encounter +/-inf or NaN, which is not representable in FP6.");
} else if (bits >= 0b10011'1110000000u) { // FP6 overflow
} else if (bits >= 0b10011'1110000000u) {
throw std::invalid_argument("FP6 overflow. FP6 cannot represent +/-inf.");
} else if (bits >= 0b01101'0000000000u) { // FP6 normal number
remainder = bits << 8u;
Expand Down

0 comments on commit a8555e3

Please sign in to comment.