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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_flip.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_flip.hpp Source File
op_flip.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 
24 #include <operator_types.h>
25 
26 #include <i_operator.hpp>
27 
28 #include "core/tensor.hpp"
29 
30 namespace roccv {
35 class Flip final : public IOperator {
36  public:
41  Flip() {}
42 
47  ~Flip() {}
48 
85  void operator()(hipStream_t stream, const Tensor &input, const Tensor &output, int32_t flipCode,
86  const eDeviceType device = eDeviceType::GPU) const;
87 };
88 } // namespace roccv
Class for managing the Flip operator.
Definition: op_flip.hpp:35
void operator()(hipStream_t stream, const Tensor &input, const Tensor &output, int32_t flipCode, const eDeviceType device=eDeviceType::GPU) const
construct a new Op Flip object. the object can be used to flip an image batch about the horizontal,...
Flip()
Construct a new Op Flip object.
Definition: op_flip.hpp:41
~Flip()
Destroy the Op Flip object.
Definition: op_flip.hpp:47
Interface class for all roccv operators.
Definition: i_operator.hpp:31
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