You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Blob::TernaryToProto() function we seem to be using 0.5*alpha as delta instead of the actual value of delta. Is there a reason for doing it this way ?
const double* data_vec = cpu_binary();
for (int i = 0; i < count_; i += 16) {
unsigned int n = 0;
for(int j=0; j<16 && (i+j)<count_; j++){
int b1 = data_vec[i+j] > -0.5alpha ? 1 : 0;
int b2 = data_vec[i+j] > 0.5alpha ? 1 : 0;
n ^= (b1 << (2j));
n ^= (b2 << (2j+1));
}
proto->add_ternary_data(n);
}
The text was updated successfully, but these errors were encountered:
In the Blob::TernaryToProto() function we seem to be using 0.5*alpha as delta instead of the actual value of delta. Is there a reason for doing it this way ?
const double* data_vec = cpu_binary();
for (int i = 0; i < count_; i += 16) {
unsigned int n = 0;
for(int j=0; j<16 && (i+j)<count_; j++){
int b1 = data_vec[i+j] > -0.5alpha ? 1 : 0;
int b2 = data_vec[i+j] > 0.5alpha ? 1 : 0;
n ^= (b1 << (2j));
n ^= (b2 << (2j+1));
}
proto->add_ternary_data(n);
}
The text was updated successfully, but these errors were encountered: