diff --git a/include/aidge/operator/Conv.hpp b/include/aidge/operator/Conv.hpp index 8984ebd08cb0b1ddfffc885f7d8c2e3df9b23da2..2bcd28e9e9b086dfed4d15f25f6529a59f41f1ce 100644 --- a/include/aidge/operator/Conv.hpp +++ b/include/aidge/operator/Conv.hpp @@ -251,7 +251,7 @@ inline std::shared_ptr<Node> Conv( const std::array<DimSize_t, DIM> &strideDims = create_array<DimSize_t,DIM>(1), const std::array<DimSize_t, DIM> &dilationDims = create_array<DimSize_t,DIM>(1), bool noBias = false) { - static_assert(DIM<=MaxDim,"Too many kernel dimensions required by Conv, not supported"); + AIDGE_ASSERT(DIM<=MaxDim,"{}: Too many kernel dimensions required, maximum allowed : {} ", Conv_Op<DIM>::Type, MaxDim); return Conv(inChannels, outChannels, to_array(kernelDims), name, strideDims, dilationDims, noBias); }