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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_resize.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_resize.hpp Source File
op_resize.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 
24 #include "core/tensor.hpp"
25 #include "i_operator.hpp"
26 #include "operator_types.h"
27 
28 namespace roccv {
33 class Resize final : public IOperator {
34  public:
38  Resize() {}
39 
44  ~Resize() {}
45 
81  void operator()(hipStream_t stream, const Tensor &in, const Tensor &output, const eInterpolationType interpolation,
82  const eDeviceType device = eDeviceType::GPU) const;
83 };
84 } // namespace roccv
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Class for managing the Resize operator.
Definition: op_resize.hpp:33
~Resize()
Destroy the Op Resize object.
Definition: op_resize.hpp:44
void operator()(hipStream_t stream, const Tensor &in, const Tensor &output, const eInterpolationType interpolation, const eDeviceType device=eDeviceType::GPU) const
Resizes input images to the shape of the output images using an interpolation mode for upscaling/down...
Resize()
Construct a new Op Resize object.
Definition: op_resize.hpp:38
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
eInterpolationType
Definition: operator_types.h:30
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69