Commit fdfe77d1 authored by Davis King's avatar Davis King

Added missing asserts

parent 504dff2d
...@@ -849,8 +849,10 @@ namespace dlib ...@@ -849,8 +849,10 @@ namespace dlib
int stride_x int stride_x
) )
{ {
DLIB_ASSERT(is_same_object(output,data) == false,""); DLIB_CASSERT(is_same_object(output,data) == false,"");
DLIB_ASSERT(is_same_object(output,filters) == 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); setup(data,filters,stride_y,stride_x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment