Added missing asserts

This commit is contained in:
Davis King 2016-01-24 15:46:05 -05:00
parent 504dff2d63
commit fdfe77d11d
1 changed files with 4 additions and 2 deletions

View File

@ -849,8 +849,10 @@ namespace dlib
int stride_x
)
{
DLIB_ASSERT(is_same_object(output,data) == false,"");
DLIB_ASSERT(is_same_object(output,filters) == false,"");
DLIB_CASSERT(is_same_object(output,data) == false,"");
DLIB_CASSERT(is_same_object(output,filters) == false,"");
DLIB_CASSERT(filters.k() == data.k(),"");
DLIB_CASSERT(stride_y > 0 && stride_x > 0,"");
setup(data,filters,stride_y,stride_x);