#include "paddle2onnx/mapper/tensor/unsqueeze2.h"

namespace paddle2onnx {
REGISTER_MAPPER(unsqueeze2, Unsqueeze2Mapper)

int32_t Unsqueeze2Mapper::GetMinOpset(bool verbose) {
  if (axes_.size() == 0) {
    if (HasInput("AxesTensorList")) {
      Logger(verbose, 13) << "While AxisTensorList as input, "
                          << RequireOpset(13) << std::endl;
      return 13;
    } else if (HasInput("AxesTensor")) {
      auto info = GetInput("AxesTensor");
      if (!IsConstantInput("AxesTensor")) {
        Logger(verbose, 13)