#include #include #include #include #include #include namespace migraphx { inline namespace MIGRAPH_INLINE_NS { namespace gpu { shape hip_tanh::compute_shape(const std::vector& inputs) const { check_shapes{inputs, *this}.has(2); return inputs.at(0); } argument hip_tanh::compute(context& ctx, const shape&, const std::vector& args) const { device::tanh(ctx.get_stream().get(), args[1], args[0]); return args[1]; } } // namespace gpu } // namespace MIGRAPH_INLINE_NS } // namespace migraphx