Skip to content
Snippets Groups Projects
Commit 04d87091 authored by Maxence Naud's avatar Maxence Naud
Browse files

Add 'Resize_Op::attribute()' function to get 'attr' attribute in python binding

parent 7b1653e6
No related branches found
No related tags found
2 merge requests!279v0.4.0,!242Extends the functionalities of Resize Operator
......@@ -167,33 +167,22 @@ class Resize_Op
return Registrar<Resize_Op>::getKeys();
}
Interpolation::CoordinateTransformation &coordinateTransformationMode() {
return mAttributes
->template getAttr<ResizeAttr::CoordinateTransformationMode>();
}
Interpolation::CoordinateTransformation &
coordinateTransformationMode() const noexcept {
inline std::shared_ptr<Attributes> attributes() const override { return mAttributes; }
inline Interpolation::CoordinateTransformation
coordinateTransformationMode() const {
return mAttributes
->template getAttr<ResizeAttr::CoordinateTransformationMode>();
}
float &cubicCoefA() {
inline float cubicCoefA() const {
return mAttributes->template getAttr<ResizeAttr::CubicCoeffA>();
}
Interpolation::Mode &interpolationMode() const noexcept {
inline Interpolation::Mode interpolationMode() const {
return mAttributes->template getAttr<ResizeAttr::InterpolationMode>();
}
Interpolation::Mode &interpolationMode() {
return mAttributes->template getAttr<ResizeAttr::InterpolationMode>();
}
PadBorderType &paddingMode() const noexcept {
return mAttributes->template getAttr<ResizeAttr::PaddingMode>();
}
PadBorderType &paddingMode() {
inline PadBorderType paddingMode() const {
return mAttributes->template getAttr<ResizeAttr::PaddingMode>();
}
// bool &excludeOutside() {
// return mAttributes->template getAttr<ResizeAttr::excludeOutside>();
// }
static const std::vector<std::string> getInputsName() {
// roi, scales, sizes, even if considered as const parameters/input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment