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
Hi, in project_and_sample.h of Lyra-0.0.2-release, why does the sampling result be multipled by 256?
float f_result = mean + scale * log((1.0f - prob) / prob);
int result = std::min(static_cast(std::numeric_limits<int16_t>::max()),
std::max(static_cast(std::numeric_limits<int16_t>::min()),
static_cast(f_result * 256)));
The text was updated successfully, but these errors were encountered:
Hi, in project_and_sample.h of Lyra-0.0.2-release, why does the sampling result be multipled by 256?
float f_result = mean + scale * log((1.0f - prob) / prob);
int result = std::min(static_cast(std::numeric_limits<int16_t>::max()),
std::max(static_cast(std::numeric_limits<int16_t>::min()),
static_cast(f_result * 256)));
The text was updated successfully, but these errors were encountered: