aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h')
-rw-r--r--arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h b/arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h
index e68525fa76..70a81b2788 100644
--- a/arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h
+++ b/arm_compute/runtime/NEON/functions/NEWidthConcatenateLayer.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 ARM Limited.
+ * Copyright (c) 2018-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -30,7 +30,10 @@
#include "arm_compute/core/NEON/kernels/NEWidthConcatenateLayerKernel.h"
+#include "arm_compute/core/utils/misc/Requires.h"
+
#include <memory>
+#include <type_traits>
#include <vector>
namespace arm_compute
@@ -56,6 +59,7 @@ public:
* The first dimension (width) is the sum of the input tensors' widths.
*/
void configure(std::vector<ITensor *> inputs_vector, ITensor *output);
+ void configure(std::vector<const ITensor *> inputs_vector, ITensor *output);
/** Static function to check if given info will lead to a valid configuration of @ref NEWidthConcatenateLayer
*
* @param[in] inputs_vector The vectors containing all the tensors to concatenate. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32.
@@ -67,6 +71,7 @@ public:
* @return a status
*/
static Status validate(const std::vector<ITensorInfo *> &inputs_vector, const ITensorInfo *output);
+ static Status validate(const std::vector<const ITensorInfo *> &inputs_vector, const ITensorInfo *output);
// Inherited methods overridden:
void run() override;
@@ -74,6 +79,10 @@ public:
private:
std::unique_ptr<NEWidthConcatenateLayerKernel[]> _concat_kernels_vector;
unsigned int _num_inputs;
+ template <typename TensorType, REQUIRES_TA(std::is_same<typename std::remove_cv<TensorType>::type, ITensor>::value)>
+ void configure_internal(std::vector<TensorType *> &&inputs_vector, ITensor *output);
+ template <typename TensorInfoType, REQUIRES_TA(std::is_same<typename std::remove_cv<TensorInfoType>::type, ITensorInfo>::value)>
+ static Status validate_internal(const std::vector<TensorInfoType *> &inputs_vector, const ITensorInfo *output);
};
} // namespace arm_compute
#endif /* __ARM_COMPUTE_NEWIDTHCONCATENATELAYER_H__ */