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

Fix clang compilation

parent 86952c94
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!145Improve UI for Operator/Node/GraphView/Tensor
Pipeline #49197 passed
......@@ -109,14 +109,8 @@ inline std::shared_ptr<Node> AvgPooling(
static_assert(DIM<=MaxDim,"Too many kernel dimensions required by AvgPooling, not supported");
return AvgPooling(to_array(kernel_dims), name, stride_dims);
}
} // namespace Aidge
template class Aidge::StaticAttributes<Aidge::AvgPoolingAttr, std::array<Aidge::DimSize_t, 1>, std::array<Aidge::DimSize_t, 1>>;
template class Aidge::StaticAttributes<Aidge::AvgPoolingAttr, std::array<Aidge::DimSize_t, 2>, std::array<Aidge::DimSize_t, 2>>;
template class Aidge::StaticAttributes<Aidge::AvgPoolingAttr, std::array<Aidge::DimSize_t, 3>, std::array<Aidge::DimSize_t, 3>>;
template class Aidge::StaticAttributes<Aidge::AvgPoolingAttr, std::array<Aidge::DimSize_t, 4>, std::array<Aidge::DimSize_t, 4>>;
extern template class Aidge::AvgPooling_Op<1>;
extern template class Aidge::AvgPooling_Op<2>;
extern template class Aidge::AvgPooling_Op<3>;
......@@ -124,8 +118,10 @@ extern template class Aidge::AvgPooling_Op<4>;
namespace {
template <>
const char *const EnumStrings<Aidge::AvgPoolingAttr>::data[] = {"StrideDims",
"KernelDims"};
const char *const EnumStrings<Aidge::AvgPoolingAttr>::data[] = {
"StrideDims",
"KernelDims"
};
}
#endif /* AIDGE_CORE_OPERATOR_AVGPOOLING_H_ */
......@@ -35,8 +35,6 @@ namespace Aidge {
template<class T, std::size_t N>
constexpr std::size_t size(T (&)[N]) { return N; }
template<std::size_t N>
constexpr std::size_t size(const char* const (&)[N]) { return N; }
/* This abstract class allows to avoid binding Attributes.
* Otherwise we would need to bind every template possible of Attributes.
......
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