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

Switch multiple attribute name to follow snake case convention.

parent 20f20a9e
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
...@@ -28,7 +28,7 @@ namespace Aidge { ...@@ -28,7 +28,7 @@ namespace Aidge {
enum class BitShiftAttr { enum class BitShiftAttr {
/** /**
* *
*/ */
BitShiftdirection BitShiftdirection
}; };
...@@ -41,7 +41,7 @@ enum class BitShiftAttr { ...@@ -41,7 +41,7 @@ enum class BitShiftAttr {
* - **InputTensor**: The tensor whose elements will be shifted. * - **InputTensor**: The tensor whose elements will be shifted.
* - **ShiftAmount**: The tensor specifying the shift amount for each element. * - **ShiftAmount**: The tensor specifying the shift amount for each element.
* *
* The shift is applied in the direction specified by the attribute `BitShiftdirection`, * The shift is applied in the direction specified by the attribute `BitShiftdirection`,
* which can either be `left` or `right`. * which can either be `left` or `right`.
* *
* @see OperatorTensor * @see OperatorTensor
...@@ -166,7 +166,7 @@ namespace { ...@@ -166,7 +166,7 @@ namespace {
* @brief Specialization of `EnumStrings` for `BitShiftAttr`. * @brief Specialization of `EnumStrings` for `BitShiftAttr`.
*/ */
template <> template <>
const char* const EnumStrings<Aidge::BitShiftAttr>::data[] = { "BitShiftdirection" }; const char* const EnumStrings<Aidge::BitShiftAttr>::data[] = { "bit_shift_direction" };
} }
#endif /* AIDGE_CORE_OPERATOR_BITSHIFT_H_ */ #endif /* AIDGE_CORE_OPERATOR_BITSHIFT_H_ */
...@@ -225,10 +225,10 @@ Resize(std::vector<float> scale = std::vector<float>(), ...@@ -225,10 +225,10 @@ Resize(std::vector<float> scale = std::vector<float>(),
namespace { namespace {
template <> template <>
const char *const EnumStrings<Aidge::ResizeAttr>::data[] = { const char *const EnumStrings<Aidge::ResizeAttr>::data[] = {
"coordinateTransformationMode", "coordinate_transformation_mode",
"cubicCoeffA", "cubic_coeff_a",
"InterpolationMode", "interpolation_mode",
"PaddingMode" "padding_mode"
}; };
} }
#endif /* AIDGE_CORE_OPERATOR_RESIZE_H_ */ #endif /* AIDGE_CORE_OPERATOR_RESIZE_H_ */
...@@ -154,7 +154,7 @@ inline std::shared_ptr<Node> Squeeze(const std::vector<int8_t> axes = {}, ...@@ -154,7 +154,7 @@ inline std::shared_ptr<Node> Squeeze(const std::vector<int8_t> axes = {},
namespace { namespace {
template <> template <>
const char *const EnumStrings<Aidge::SqueezeAttr>::data[] = {"Axes"}; const char *const EnumStrings<Aidge::SqueezeAttr>::data[] = {"axes"};
} }
#endif // AIDGE_CORE_OPERATOR_SQUEEZE_H_ #endif // AIDGE_CORE_OPERATOR_SQUEEZE_H_
...@@ -152,7 +152,7 @@ inline std::shared_ptr<Node> Unsqueeze(const std::vector<int8_t> &axes = {}, ...@@ -152,7 +152,7 @@ inline std::shared_ptr<Node> Unsqueeze(const std::vector<int8_t> &axes = {},
namespace { namespace {
template <> template <>
const char *const EnumStrings<Aidge::UnsqueezeAttr>::data[] = {"Axes"}; const char *const EnumStrings<Aidge::UnsqueezeAttr>::data[] = {"axes"};
} }
#endif // AIDGE_CORE_OPERATOR_UNSQUEEZE_H_ #endif // AIDGE_CORE_OPERATOR_UNSQUEEZE_H_
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