aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-03-30 10:03:01 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-03-31 11:44:07 +0000
commitc6f9510bcb754afaadfe9477ff85d6c55ffcf43b (patch)
treec1b08777a93ab9d2e334c71acf30f337bdb3feda /utils
parent2788609b8a10306e9eae47543b39812a7b075aaa (diff)
downloadComputeLibrary-c6f9510bcb754afaadfe9477ff85d6c55ffcf43b.tar.gz
Remove Computer Vision generic interfaces and types
Removes: - reference validation routines - CV related types and structures - CV related interfaces Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I3a203da12d9b04c154059b190aeba18a611149a9 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5340 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h301
-rw-r--r--utils/Utils.h20
2 files changed, 5 insertions, 316 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 53a8902dd4..e849edc092 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -28,7 +28,6 @@
#include "arm_compute/core/Dimensions.h"
#include "arm_compute/core/Error.h"
#include "arm_compute/core/GPUTarget.h"
-#include "arm_compute/core/HOGInfo.h"
#include "arm_compute/core/KernelDescriptors.h"
#include "arm_compute/core/Size2D.h"
#include "arm_compute/core/Strides.h"
@@ -86,89 +85,6 @@ inline ::std::ostream &operator<<(::std::ostream &os, const Dimensions<T> &dimen
return os;
}
-/** Formatted output of the NonLinearFilterFunction type.
- *
- * @param[out] os Output stream.
- * @param[in] function Type to output.
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const NonLinearFilterFunction &function)
-{
- switch(function)
- {
- case NonLinearFilterFunction::MAX:
- os << "MAX";
- break;
- case NonLinearFilterFunction::MEDIAN:
- os << "MEDIAN";
- break;
- case NonLinearFilterFunction::MIN:
- os << "MIN";
- break;
- default:
- ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
- }
-
- return os;
-}
-
-/** Formatted output of the NonLinearFilterFunction type.
- *
- * @param[in] function Type to output.
- *
- * @return Formatted string.
- */
-inline std::string to_string(const NonLinearFilterFunction &function)
-{
- std::stringstream str;
- str << function;
- return str.str();
-}
-
-/** Formatted output of the MatrixPattern type.
- *
- * @param[out] os Output stream.
- * @param[in] pattern Type to output.
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const MatrixPattern &pattern)
-{
- switch(pattern)
- {
- case MatrixPattern::BOX:
- os << "BOX";
- break;
- case MatrixPattern::CROSS:
- os << "CROSS";
- break;
- case MatrixPattern::DISK:
- os << "DISK";
- break;
- case MatrixPattern::OTHER:
- os << "OTHER";
- break;
- default:
- ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
- }
-
- return os;
-}
-
-/** Formatted output of the MatrixPattern type.
- *
- * @param[in] pattern Type to output.
- *
- * @return Formatted string.
- */
-inline std::string to_string(const MatrixPattern &pattern)
-{
- std::stringstream str;
- str << pattern;
- return str.str();
-}
-
/** Formatted output of the RoundingPolicy type.
*
* @param[out] os Output stream.
@@ -1083,8 +999,8 @@ inline ::std::ostream &operator<<(::std::ostream &os, const SamplingPolicy &poli
*/
inline ::std::ostream &operator<<(std::ostream &os, const ITensorInfo *info)
{
- const DataType data_type = info->data_type();
- const DataLayout data_layout = info->data_layout();
+ const DataType data_type = info->data_type();
+ const DataLayout data_layout = info->data_layout();
os << "Shape=" << info->tensor_shape() << ","
<< "DataLayout=" << string_from_data_layout(data_layout) << ","
@@ -1109,7 +1025,7 @@ inline ::std::ostream &operator<<(std::ostream &os, const ITensorInfo *info)
else
{
os << "(" << qinfo.uniform().scale << ", "
- << qinfo.uniform().offset << ")";
+ << qinfo.uniform().offset << ")";
}
}
return os;
@@ -1125,7 +1041,7 @@ inline ::std::ostream &operator<<(std::ostream &os, const ITensorInfo *info)
inline ::std::ostream &operator<<(::std::ostream &os, const TensorInfo &info)
{
os << &info;
- return os;
+ return os;
}
/** Formatted output of the TensorInfo type.
@@ -1803,140 +1719,6 @@ inline std::string to_string(const PriorBoxLayerInfo &info)
return str.str();
}
-/** Formatted output of the KeyPoint type.
- *
- * @param[out] os Output stream
- * @param[in] point Type to output.
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const KeyPoint &point)
-{
- os << "{x=" << point.x << ","
- << "y=" << point.y << ","
- << "strength=" << point.strength << ","
- << "scale=" << point.scale << ","
- << "orientation=" << point.orientation << ","
- << "tracking_status=" << point.tracking_status << ","
- << "error=" << point.error << "}";
-
- return os;
-}
-
-/** Formatted output of the PhaseType type.
- *
- * @param[out] os Output stream
- * @param[in] phase_type Type to output.
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const PhaseType &phase_type)
-{
- switch(phase_type)
- {
- case PhaseType::SIGNED:
- os << "SIGNED";
- break;
- case PhaseType::UNSIGNED:
- os << "UNSIGNED";
- break;
- default:
- ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
- }
-
- return os;
-}
-
-/** Formatted output of the PhaseType type.
- *
- * @param[in] type Type to output.
- *
- * @return Formatted string.
- */
-inline std::string to_string(const arm_compute::PhaseType &type)
-{
- std::stringstream str;
- str << type;
- return str.str();
-}
-
-/** Formatted output of the MagnitudeType type.
- *
- * @param[out] os Output stream
- * @param[in] magnitude_type Type to output.
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const MagnitudeType &magnitude_type)
-{
- switch(magnitude_type)
- {
- case MagnitudeType::L1NORM:
- os << "L1NORM";
- break;
- case MagnitudeType::L2NORM:
- os << "L2NORM";
- break;
- default:
- ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
- }
-
- return os;
-}
-
-/** Formatted output of the MagnitudeType type.
- *
- * @param[in] type Type to output.
- *
- * @return Formatted string.
- */
-inline std::string to_string(const arm_compute::MagnitudeType &type)
-{
- std::stringstream str;
- str << type;
- return str.str();
-}
-
-/** Formatted output of the HOGNormType type.
- *
- * @param[out] os Output stream
- * @param[in] norm_type Type to output
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const HOGNormType &norm_type)
-{
- switch(norm_type)
- {
- case HOGNormType::L1_NORM:
- os << "L1_NORM";
- break;
- case HOGNormType::L2_NORM:
- os << "L2_NORM";
- break;
- case HOGNormType::L2HYS_NORM:
- os << "L2HYS_NORM";
- break;
- default:
- ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
- }
-
- return os;
-}
-
-/** Formatted output of the HOGNormType type.
- *
- * @param[in] type Type to output
- *
- * @return Formatted string.
- */
-inline std::string to_string(const HOGNormType &type)
-{
- std::stringstream str;
- str << type;
- return str.str();
-}
-
/** Formatted output of the Size2D type.
*
* @param[out] os Output stream
@@ -1964,40 +1746,6 @@ inline std::string to_string(const Size2D &type)
return str.str();
}
-/** Formatted output of the HOGInfo type.
- *
- * @param[out] os Output stream
- * @param[in] hog_info Type to output
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const HOGInfo &hog_info)
-{
- os << "{CellSize=" << hog_info.cell_size() << ","
- << "BlockSize=" << hog_info.block_size() << ","
- << "DetectionWindowSize=" << hog_info.detection_window_size() << ","
- << "BlockStride=" << hog_info.block_stride() << ","
- << "NumBins=" << hog_info.num_bins() << ","
- << "NormType=" << hog_info.normalization_type() << ","
- << "L2HystThreshold=" << hog_info.l2_hyst_threshold() << ","
- << "PhaseType=" << hog_info.phase_type() << "}";
-
- return os;
-}
-
-/** Formatted output of the HOGInfo type.
- *
- * @param[in] type Type to output
- *
- * @return Formatted string.
- */
-inline std::string to_string(const HOGInfo &type)
-{
- std::stringstream str;
- str << type;
- return str.str();
-}
-
/** Formatted output of the ConvolutionMethod type.
*
* @param[out] os Output stream
@@ -2252,6 +2000,7 @@ inline std::string to_string(const DetectionPostProcessLayerInfo &detection_info
str << detection_info;
return str.str();
}
+
/** Formatted output of the DetectionWindow type.
*
* @param[in] detection_window Type to output
@@ -2265,46 +2014,6 @@ inline std::string to_string(const DetectionWindow &detection_window)
return str.str();
}
-/** Formatted output of the Termination type.
- *
- * @param[out] os Output stream
- * @param[in] termination Type to output
- *
- * @return Modified output stream.
- */
-inline ::std::ostream &operator<<(::std::ostream &os, const Termination &termination)
-{
- switch(termination)
- {
- case Termination::TERM_CRITERIA_EPSILON:
- os << "TERM_CRITERIA_EPSILON";
- break;
- case Termination::TERM_CRITERIA_ITERATIONS:
- os << "TERM_CRITERIA_ITERATIONS";
- break;
- case Termination::TERM_CRITERIA_BOTH:
- os << "TERM_CRITERIA_BOTH";
- break;
- default:
- ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
- }
-
- return os;
-}
-
-/** Formatted output of the Termination type.
- *
- * @param[in] termination Type to output
- *
- * @return Formatted string.
- */
-inline std::string to_string(const Termination &termination)
-{
- std::stringstream str;
- str << termination;
- return str.str();
-}
-
/** Formatted output of the CPUModel type.
*
* @param[out] os Output stream
diff --git a/utils/Utils.h b/utils/Utils.h
index e9fbc134b2..d46fbc3633 100644
--- a/utils/Utils.h
+++ b/utils/Utils.h
@@ -42,7 +42,6 @@
#ifdef ARM_COMPUTE_CL
#include "arm_compute/core/CL/OpenCL.h"
-#include "arm_compute/runtime/CL/CLDistribution1D.h"
#include "arm_compute/runtime/CL/CLTensor.h"
#endif /* ARM_COMPUTE_CL */
@@ -245,25 +244,6 @@ inline void unmap(CLTensor &tensor)
{
tensor.unmap();
}
-
-/** Maps a distribution if needed
- *
- * @param[in] distribution Distribution to be mapped
- * @param[in] blocking Specified if map is blocking or not
- */
-inline void map(CLDistribution1D &distribution, bool blocking)
-{
- distribution.map(blocking);
-}
-
-/** Unmaps a distribution if needed
- *
- * @param distribution Distribution to be unmapped
- */
-inline void unmap(CLDistribution1D &distribution)
-{
- distribution.unmap();
-}
#endif /* ARM_COMPUTE_CL */
/** Specialized class to generate random non-zero FP16 values.