text: // Copyright (C) 2018-2022 Intel Corporation
  // SPDX-License-Identifier: Apache-2.0
  //
  
  #pragma once
  
  #include <cmath>
  #include <cstddef>
  
  namespace ngraph {
  namespace runtime {
  namespace reference {
  template <typename T>
  void mish(const T* arg, T* out, size_t count) {
      for (size_t i = 0; i < count; i++) {
          out[i] = arg[i] * std::tanh(std::log((std::exp(arg[i]) + 1.0)));
      }
  }
  }  // namespace reference
  }  // namespace runtime
  }  // namespace ngraph
  