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

fix typo for GridSample

parent fb061c8f
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ public:
static const std::string Type;
enum class Mode { Linear, Nearest, Cubic };
enum class PaddingMode { Zeros, Border, Reflexion };
enum class PaddingMode { Zeros, Border, Reflection };
private:
using Attributes_ = StaticAttributes<GridSampleAttr, Mode, PaddingMode, bool>;
......@@ -62,7 +62,7 @@ public:
inline std::shared_ptr<Attributes> attributes() const override { return mAttributes; }
inline Mode mode() const { return mAttributes->template getAttr<GridSampleAttr::Mode>(); }
inline PaddingMode paddingMode() const { return mAttributes->template getAttr<GridSampleAttr::PaddingMode>(); }
inline bool alignBorders() const { return mAttributes->template getAttr<GridSampleAttr::AlignCorners>(); }
inline bool alignCorners() const { return mAttributes->template getAttr<GridSampleAttr::AlignCorners>(); }
static const std::vector<std::string> getInputsName() {
return {"data_input", "grid_field"};
......
......@@ -36,7 +36,7 @@ static typename Aidge::GridSample_Op::PaddingMode stringToPaddingMode(const std:
static std::unordered_map<std::string, typename Aidge::GridSample_Op::PaddingMode> map = {
{"zeros", Aidge::GridSample_Op::PaddingMode::Zeros},
{"border", Aidge::GridSample_Op::PaddingMode::Border},
{"reflexion", Aidge::GridSample_Op::PaddingMode::Reflexion}
{"reflection", Aidge::GridSample_Op::PaddingMode::Reflection}
};
return map[mode];
}
......
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