fp_conversion.cpp 726 Bytes
Newer Older
1
#include <migraphx/gpu/fp_conversion.hpp>
Shucai Xiao's avatar
Shucai Xiao committed
2
#include <migraphx/gpu/device/fp_conversion.hpp>
3
4
5
6
7
8
9
10
11
#include <migraphx/gpu/context.hpp>

namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace gpu {

shape hip_fp_conversion::compute_shape(std::vector<shape> inputs) const
{
    inputs.pop_back();
12
    check_shapes{inputs}.packed();
13
14
15
16
17
18
19
20
21
22
23
24
25
    return op.compute_shape(inputs);
}

argument hip_fp_conversion::compute(context& ctx,
                                    const shape& output_shape,
                                    const std::vector<argument>& args) const
{
    return device::fp_conversion(ctx.get_stream().get(), output_shape, args);
}

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