Resize Class Reference#
2 min read time
Applies to Linux
roccv::Resize Class Referencefinal
Class for managing the Resize operator. More...
#include <op_resize.hpp>
Inheritance diagram for roccv::Resize:

Public Member Functions | |
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/downscaling. More... | |
Resize () | |
Construct a new Op Resize object. More... | |
~Resize () | |
Destroy the Op Resize object. More... | |
![]() | |
virtual | ~IOperator () |
Detailed Description
Class for managing the Resize operator.
Constructor & Destructor Documentation
◆ Resize()
|
inline |
Construct a new Op Resize object.
◆ ~Resize()
|
inline |
Destroy the Op Resize object.
Member Function Documentation
◆ operator()()
void roccv::Resize::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/downscaling.
Limitations:
Input: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s): [U8, F32]
Output: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s) [U8, F32]
Input/Output dependency:
Property | Input == Output -------------- | ------------- TensorLayout | Yes DataType | Yes Channels | Yes Width | No Height | No Batch | Yes
Supported interpolation modes: [NEAREST, LINEAR]
- Parameters
-
[in] stream The HIP stream to run this operator on. [in] input Input tensor with image batch data. [out] output Output tensor for storing modified image batch data. [in] interpolation The interpolation method used when resizing images. [in] device The device to run this operator on. (Default: GPU).
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_resize.hpp