Searched refs:clipping_value (Results 1 – 2 of 2) sorted by relevance
/frameworks/ml/nn/common/ |
D | QuantUtils.cpp | 150 void CwiseClipping(int16_t* input, const int16_t clipping_value, int32_t n_batch, int32_t n_input) { in CwiseClipping() argument 154 if (input[index] > clipping_value) { in CwiseClipping() 155 input[index] = clipping_value; in CwiseClipping() 157 if (input[index] < -clipping_value) { in CwiseClipping() 158 input[index] = -clipping_value; in CwiseClipping() 164 void CwiseClipping(int8_t* input, const int8_t clipping_value, int32_t n_batch, int32_t n_input) { in CwiseClipping() argument 168 if (input[index] > clipping_value) { in CwiseClipping() 169 input[index] = clipping_value; in CwiseClipping() 171 if (input[index] < -clipping_value) { in CwiseClipping() 172 input[index] = -clipping_value; in CwiseClipping()
|
D | QuantUtils.h | 201 void CwiseClipping(int16_t* input, const int16_t clipping_value, int32_t n_batch, int32_t n_input); 203 void CwiseClipping(int8_t* input, const int8_t clipping_value, int32_t n_batch, int32_t n_input);
|