#include #include #include #include #include namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { namespace gpu { shape hip_multinomial::compute_shape(std::vector inputs) const { check_shapes{inputs, *this}.has(3).only_dims(2).standard(); inputs.pop_back(); return op.compute_shape(inputs); } argument hip_multinomial::compute(context& ctx, const shape&, const std::vector& args) const { device::multinomial(ctx.get_stream().get(), args.back(), args.front(), args[1]); return args.back(); } } // namespace gpu } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx