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 ...@@ -167,33 +167,22 @@ class Resize_Op
return Registrar<Resize_Op>::getKeys(); return Registrar<Resize_Op>::getKeys();
} }
Interpolation::CoordinateTransformation &coordinateTransformationMode() { inline std::shared_ptr<Attributes> attributes() const override { return mAttributes; }
return mAttributes
->template getAttr<ResizeAttr::CoordinateTransformationMode>(); inline Interpolation::CoordinateTransformation
} coordinateTransformationMode() const {
Interpolation::CoordinateTransformation &
coordinateTransformationMode() const noexcept {
return mAttributes return mAttributes
->template getAttr<ResizeAttr::CoordinateTransformationMode>(); ->template getAttr<ResizeAttr::CoordinateTransformationMode>();
} }
float &cubicCoefA() { inline float cubicCoefA() const {
return mAttributes->template getAttr<ResizeAttr::CubicCoeffA>(); return mAttributes->template getAttr<ResizeAttr::CubicCoeffA>();
} }
Interpolation::Mode &interpolationMode() const noexcept { inline Interpolation::Mode interpolationMode() const {
return mAttributes->template getAttr<ResizeAttr::InterpolationMode>(); return mAttributes->template getAttr<ResizeAttr::InterpolationMode>();
} }
Interpolation::Mode &interpolationMode() { inline PadBorderType paddingMode() const {
return mAttributes->template getAttr<ResizeAttr::InterpolationMode>();
}
PadBorderType &paddingMode() const noexcept {
return mAttributes->template getAttr<ResizeAttr::PaddingMode>();
}
PadBorderType &paddingMode() {
return mAttributes->template getAttr<ResizeAttr::PaddingMode>(); return mAttributes->template getAttr<ResizeAttr::PaddingMode>();
} }
// bool &excludeOutside() {
// return mAttributes->template getAttr<ResizeAttr::excludeOutside>();
// }
static const std::vector<std::string> getInputsName() { static const std::vector<std::string> getInputsName() {
// roi, scales, sizes, even if considered as const parameters/input // 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