17 using namespace armcomputetensorutils;
32 std::vector<arm_compute::TensorInfo> aclInputs;
36 aclInputs.emplace_back(aclInputInfo);
38 const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
39 std::vector<const arm_compute::ITensorInfo*> aclInputPtrs;
40 for (arm_compute::ITensorInfo& input : aclInputs)
42 aclInputPtrs.emplace_back(&input);
45 size_t aclAxis = CalcAxis(descriptor);
46 return arm_compute::NEConcatenateLayer::validate(aclInputPtrs, &aclOutputInfo, aclAxis);
59 bool allInputsAreSubtensors =
true;
62 for (
auto input : descriptor.
m_Inputs)
64 if (!input->GetParent())
67 allInputsAreSubtensors =
false;
72 if (allInputsAreSubtensors)
78 std::vector<const arm_compute::ITensor *> aclInputs;
81 arm_compute::ITensor& aclInput = armnn::PolymorphicPointerDowncast<IAclTensorHandle>(input)->GetTensor();
82 aclInputs.emplace_back(&aclInput);
84 arm_compute::ITensor& output = armnn::PolymorphicPointerDowncast<IAclTensorHandle>(
88 m_Layer.reset(
new arm_compute::NEConcatenateLayer());
92 m_Layer->configure(aclInputs, &output, aclAxis);