Class ResizeBilinear

Inheritance Relationships

Base Type

Class Documentation

class ResizeBilinear : public mindspore::ops::PrimitiveC

Resizes an image to a certain size using the bilinear interpolation. Refer to Python API mindspore.ops.ResizeBilinear for more details.

Public Functions

inline ResizeBilinear()

Constructor.

~ResizeBilinear() = default

Destructor.

void Init(const std::vector<int64_t> &size, const bool align_corners = false)

Init. Refer to the parameters of Python API mindspore.ops.ResizeBilinear for the inputs.

void set_size(const std::vector<int64_t> &size)

Set size.

void set_align_corners(const bool align_corners)

Set align_corners.

std::vector<int64_t> get_size() const

Get size.

Returns

size.

bool get_align_corners() const

Get align_corners.

Returns

align_corners.