if(act == ActivationFunction::RELU)
{
tmp = std::max(const_0, in);
- tmp = utility::clamp<qasymm8_t>(tmp * s + o);
+ tmp = utility::clamp<int32_t, qasymm8_t>(tmp * s + o);
}
else if(act == ActivationFunction::BOUNDED_RELU)
{
tmp = std::min(a, std::max(const_0, in));
- tmp = utility::clamp<qasymm8_t>(tmp * s + o);
+ tmp = utility::clamp<int32_t, qasymm8_t>(tmp * s + o);
}
else if(act == ActivationFunction::LU_BOUNDED_RELU)
{
tmp = std::min(a, std::max(b, in));
- tmp = utility::clamp<qasymm8_t>(tmp * s + o);
+ tmp = utility::clamp<int32_t, qasymm8_t>(tmp * s + o);
}
else if(act == ActivationFunction::LOGISTIC)
{
if(act == ActivationFunction::RELU)
{
tmp = std::max(const_0, in);
- tmp = utility::clamp<qasymm8_signed_t>(tmp * s + o);
+ tmp = utility::clamp<int32_t, qasymm8_signed_t>(tmp * s + o);
}
else if(act == ActivationFunction::BOUNDED_RELU)
{
tmp = std::min(a, std::max(const_0, in));
- tmp = utility::clamp<qasymm8_signed_t>(tmp * s + o);
+ tmp = utility::clamp<int32_t, qasymm8_signed_t>(tmp * s + o);
}
else if(act == ActivationFunction::LU_BOUNDED_RELU)
{
tmp = std::min(a, std::max(b, in));
- tmp = utility::clamp<qasymm8_signed_t>(tmp * s + o);
+ tmp = utility::clamp<int32_t, qasymm8_signed_t>(tmp * s + o);
}
else if(act == ActivationFunction::LOGISTIC)
{