Skip to content
Snippets Groups Projects
Commit 6d809877 authored by Grégoire Kubler's avatar Grégoire Kubler Committed by Maxence Naud
Browse files

feat : added PadBorderType::Zero & added documentation to known padding types

parent 260da0d0
No related branches found
No related tags found
2 merge requests!279v0.4.0,!242Extends the functionalities of Resize Operator
...@@ -26,7 +26,19 @@ ...@@ -26,7 +26,19 @@
namespace Aidge { namespace Aidge {
enum class PadAttr { BeginEndBorders, BorderType, BorderValue }; enum class PadAttr { BeginEndBorders, BorderType, BorderValue };
enum class PadBorderType { Constant, Edge, Reflect, Wrap }; enum class PadBorderType {
/** @brief all out of bound values will be set to a given value.*/
Constant,
Edge,
Reflect,
Wrap,
/** @brief all out of bound values will take the value
*of their nearest neighbour
*/
Nearest,
/** @brief all out of bound values will be set to 0.*/
Zero,
};
template <DimIdx_t DIM> template <DimIdx_t DIM>
class Pad_Op : public OperatorTensor, class Pad_Op : public OperatorTensor,
......
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