From 63640ad75da8fd5c9a08f0f0a492038365b9f0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me> Date: Tue, 17 Dec 2024 17:46:28 +0100 Subject: [PATCH] chore : better warning message for conv operator constructor --- include/aidge/operator/Conv.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/aidge/operator/Conv.hpp b/include/aidge/operator/Conv.hpp index 8984ebd08..2bcd28e9e 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); } -- GitLab