Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[BUGFIX][v1.x] Fix a bug for 1bit quantizer #20007

Merged
merged 1 commit into from
Mar 14, 2021
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
2 changes: 1 addition & 1 deletion src/kvstore/gradient_compression.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void GradientCompression::SetTwoBitCompression(const float threshold) {
std::string GradientCompression::EncodeParams() {
using namespace std; // to reduce length of next line
string rval = get_type_str();
if (type_ == CompressionType::kTwoBit) {
if (type_ != CompressionType::kNone) {
rval += "," + to_string(threshold_);
}
return rval;
Expand Down