Skip to content
Snippets Groups Projects
Commit 91e35425 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Fix Pad compilation for clang.

parent b27558e8
No related branches found
No related tags found
3 merge requests!414Update version 0.5.1 -> 0.6.0,!408[Add] Dropout Operator,!333[Fix] Attribute snake case
Pipeline #65849 failed
...@@ -35,19 +35,6 @@ enum class PadAttr { ...@@ -35,19 +35,6 @@ enum class PadAttr {
BorderType, ///< Type of border handling during padding. BorderType, ///< Type of border handling during padding.
BorderValue ///< Value to be used for constant padding. BorderValue ///< Value to be used for constant padding.
}; };
namespace {
/**
* @brief EnumStrings specialization for PadAttr.
*/
template <>
const char* const EnumStrings<Aidge::PadAttr>::data[] = {
"begin_end_borders",
"border_type",
"border_value"
};
} // namespace
/** /**
* @enum PadBorderType * @enum PadBorderType
* @brief Types of border handling available for padding. * @brief Types of border handling available for padding.
...@@ -59,7 +46,20 @@ enum class PadBorderType { ...@@ -59,7 +46,20 @@ enum class PadBorderType {
Wrap, ///< Values wrap around the tensor dimensions. Wrap, ///< Values wrap around the tensor dimensions.
Zero ///< All out-of-bound values are set to 0. Zero ///< All out-of-bound values are set to 0.
}; };
} // namespace Aidge } // namespace Aidge
namespace {
/**
* @brief EnumStrings specialization for PadAttr.
*/
template <>
const char* const EnumStrings<Aidge::PadAttr>::data[] = {
"begin_end_borders",
"border_type",
"border_value"
};
/** /**
* @brief EnumStrings specialization for PadBorderType. * @brief EnumStrings specialization for PadBorderType.
*/ */
...@@ -71,6 +71,8 @@ const char* const EnumStrings<Aidge::PadBorderType>::data[] = { ...@@ -71,6 +71,8 @@ const char* const EnumStrings<Aidge::PadBorderType>::data[] = {
"Wrap", "Wrap",
"Zero" "Zero"
}; };
} // namespace
namespace Aidge { namespace Aidge {
/** /**
* @class Pad_Op * @class Pad_Op
......
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