Skip to content
Snippets Groups Projects
Commit 63640ad7 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

chore : better warning message for conv operator constructor

parent 6b9b5b33
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !319. Comments created here will be created in the context of that merge request.
...@@ -251,7 +251,7 @@ inline std::shared_ptr<Node> Conv( ...@@ -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> &strideDims = create_array<DimSize_t,DIM>(1),
const std::array<DimSize_t, DIM> &dilationDims = create_array<DimSize_t,DIM>(1), const std::array<DimSize_t, DIM> &dilationDims = create_array<DimSize_t,DIM>(1),
bool noBias = false) { 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); return Conv(inChannels, outChannels, to_array(kernelDims), name, strideDims, dilationDims, noBias);
} }
......
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