pad.cpp 582 Bytes
Newer Older
1
#include <migraphx/gpu/pad.hpp>
Paul's avatar
Paul committed
2
#include <migraphx/gpu/context.hpp>
3
4
5
6
7
8
9
10
11
12
13
14
#include <migraphx/gpu/device/pad.hpp>

namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace gpu {

shape hip_pad::compute_shape(std::vector<shape> inputs) const
{
    inputs.pop_back();
    return op.compute_shape(inputs);
}

Khalique's avatar
Khalique committed
15
argument hip_pad::compute(context& ctx, const shape&, const std::vector<argument>& args) const
16
17
18
19
20
21
22
{
    return device::pad(ctx.get_stream().get(), args.back(), args.front(), op.value, op.pads);
}

} // namespace gpu
} // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx