#pragma once

#include <c10/core/dispatch/DeviceId.h>
#include <c10/core/Tensor.h>
#include <c10/util/Array.h>
#include <c10/util/ArrayRef.h>
#include "caffe2/core/context_base.h"

namespace caffe2 {
namespace ops {

struct Concat final {
  static constexpr const char* name = "concat";

  using Signature = void(
      at::ArrayRef<C10Tensor> inputs,
      const C10Tensor& output,
      const C10Tensor& split_info,
      int add,
      int add_axis);

  static constexpr size_t num_outputs() {return 2;}

  static constexpr c10::guts::array<const char*, 5> parameter_names = {
      {"inputs", "output", "split_info_output", "add", "add_axis"}};

  static c10::DeviceTypeId dispatch_key(
      at::ArrayRef<C10Tensor> inputs,
      const C10Tensor& output,
      const C10Tensor& split_info,
      int add,
      int add_axis) {
    return c10::DeviceTypeId::CPU;
  }
};

} // namespace ops
} // namespace caffe2
