MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Tanh

Function Tanh

tensorflow/lite/kernels/internal/optimized/optimized_ops.h:3802–3808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3800}
3801
3802inline 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.

Callers 1

TanhEvalFunction · 0.50

Calls 3

MatchingFlatSizeFunction · 0.85
MapAsVectorFunction · 0.70
tanhFunction · 0.50

Tested by

no test coverage detected