| 3800 | } |
| 3801 | |
| 3802 | inline void Tanh(const RuntimeShape& input_shape, const float* input_data, |
| 3803 | const RuntimeShape& output_shape, float* output_data) { |
| 3804 | gemmlowp::ScopedProfilingLabel label("Tanh"); |
| 3805 | auto input_map = MapAsVector(input_data, input_shape); |
| 3806 | auto output_map = MapAsVector(output_data, output_shape); |
| 3807 | output_map.array() = input_map.array().tanh(); |
| 3808 | } |
| 3809 | |
| 3810 | // Convenience version that allows, for example, generated-code calls to be |
| 3811 | // uniform between data types. |
no test coverage detected