// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.

#include "ck/library/tensor_operation_instance/gpu/conv_tensor_rearrange/device_column_to_image_instance.hpp"
#include "ck/library/tensor_operation_instance/add_device_operation_instance.hpp"

namespace ck {
namespace tensor_operation {
namespace device {
namespace instance {

using namespace ck::conv_tensor_rearrange_op;

void add_device_column_to_image_nhwc_2d_bf16_instances(
    std::vector<std::unique_ptr<DeviceConvTensorRearrange<2, GNHWC, BF16, BF16, ColumnToImage>>>&
        instances)
{
    add_device_operation_instances(instances, device_column_to_image_bf16_instances<2, GNHWC>{});
}

void add_device_column_to_image_nhwc_2d_f16_instances(
    std::vector<std::unique_ptr<DeviceConvTensorRearrange<2, GNHWC, F16, F16, ColumnToImage>>>&
        instances)
{
    add_device_operation_instances(instances, device_column_to_image_f16_instances<2, GNHWC>{});
}

void add_device_column_to_image_nhwc_2d_f32_instances(
    std::vector<std::unique_ptr<DeviceConvTensorRearrange<2, GNHWC, F32, F32, ColumnToImage>>>&
        instances)
{
    add_device_operation_instances(instances, device_column_to_image_f32_instances<2, GNHWC>{});
}

void add_device_column_to_image_nhwc_2d_i8_instances(
    std::vector<
        std::unique_ptr<DeviceConvTensorRearrange<2, GNHWC, int8_t, int8_t, ColumnToImage>>>&
        instances)
{
    add_device_operation_instances(instances, device_column_to_image_i8_instances<2, GNHWC>{});
}

} // namespace instance
} // namespace device
} // namespace tensor_operation
} // namespace ck
