fix error: conversion from gsl::span<const long int> to non-scalar type std::vector<long int> requested #9893
Description
diff --git a/onnxruntime/core/providers/acl/tensor/concat.cc b/onnxruntime/core/providers/acl/tensor/concat.cc
index a7489970d..68e2a3be6 100644
--- a/onnxruntime/core/providers/acl/tensor/concat.cc
+++ b/onnxruntime/core/providers/acl/tensor/concat.cc
@@ -32,7 +32,7 @@ Status Concat::Compute(OpKernelContext* ctx) const {
input_tensors.push_back(ctx->Input(i));
}
- std::vector<int64_t> output_dims = input_tensors[0]->Shape().GetDims();
-
std::vector<int64_t> output_dims = input_tensors[0]->Shape().GetDimsAsVector();
// 'Concat' mode
if (!is_stack_) {
diff --git a/onnxruntime/core/providers/armnn/tensor/concat.cc b/onnxruntime/core/providers/armnn/tensor/concat.cc
index e6af286f3..3828a413d 100644
--- a/onnxruntime/core/providers/armnn/tensor/concat.cc
+++ b/onnxruntime/core/providers/armnn/tensor/concat.cc
@@ -39,7 +39,7 @@ Status Concat::Compute(OpKernelContext* ctx) const {
LOGS_DEFAULT(VERBOSE) << "axis: " << axis_;
LOGS_DEFAULT(VERBOSE) << std::endl;
- std::vector<int64_t> output_dims = input_tensors[0]->Shape().GetDims();
-
std::vector<int64_t> output_dims = input_tensors[0]->Shape().GetDimsAsVector();
// 'Concat' mode
if (!is_stack_) {