concat.cpp 739 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#include <migraph/gpu/concat.hpp>
#include <migraph/operators.hpp>
#include <migraph/manage_ptr.hpp>
#include <migraph/gpu/miopen.hpp>
#include <migraph/gpu/device/concat.hpp>
#include <utility>

namespace migraph {
namespace gpu {

wsttiger's avatar
wsttiger committed
11
shape hip_concat::compute_shape(std::vector<shape> inputs) const
12
13
14
15
16
{
    inputs.pop_back();
    return op.compute_shape(inputs);
}

Paul's avatar
Paul committed
17
18
19
argument hip_concat::compute(context& ctx,
                             const shape& output_shape,
                             const std::vector<argument>& args) const
20
{
21
    std::vector<std::size_t> offsets = op.compute_offsets(output_shape, args);
Paul's avatar
Paul committed
22
    return device::concat(ctx.get_stream().get(), output_shape, args, offsets);
23
24
25
26
27
}

} // namespace gpu

} // namespace migraph