#include #include #include namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { namespace gpu { shape hip_clip::compute_shape(std::vector inputs) const { inputs.pop_back(); return op.compute_shape(inputs); } argument hip_clip::compute(context& ctx, const shape& output_shape, const std::vector& args) const { assert(output_shape == args.back().get_shape()); (void)output_shape; device::clip(ctx.get_stream().get(), args.back(), args.front(), op.max_val, op.min_val); return args.back(); } } // namespace gpu } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx