/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_non_max_suppression.hpp Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_non_max_suppression.hpp Source File#

2 min read time

Applies to Linux

rocCV: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_non_max_suppression.hpp Source File
op_non_max_suppression.hpp
Go to the documentation of this file.
1 
23 #pragma once
24 
25 #include <operator_types.h>
26 
27 #include "core/tensor.hpp"
28 #include "i_operator.hpp"
29 
30 namespace roccv {
35 class NonMaximumSuppression final : public IOperator {
36  public:
42 
48 
95  void operator()(hipStream_t stream, const Tensor& input, const Tensor& output, const Tensor& scores,
96  float scoreThreshold, float iouThreshold, const eDeviceType device = eDeviceType::GPU) const;
97 };
98 } // namespace roccv
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Class for managing the NMS operator.
Definition: op_non_max_suppression.hpp:35
NonMaximumSuppression()
Construct a new Op Non Max Suppression object.
Definition: op_non_max_suppression.hpp:41
void operator()(hipStream_t stream, const Tensor &input, const Tensor &output, const Tensor &scores, float scoreThreshold, float iouThreshold, const eDeviceType device=eDeviceType::GPU) const
Executes the Non-Maximum Suppression operation. This object performs Non-Maximum Suppression on bound...
~NonMaximumSuppression()
Destroy the Op Non Max Suppression object.
Definition: op_non_max_suppression.hpp:47
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69