| 2929 | } |
| 2930 | |
| 2931 | void tensor_conv::operator() ( |
| 2932 | const bool add_to_output, |
| 2933 | resizable_tensor& output, |
| 2934 | const tensor& data, |
| 2935 | const tensor& filters |
| 2936 | ) |
| 2937 | { |
| 2938 | DLIB_CASSERT(last_stride_y > 0 && last_stride_x > 0, "You must call setup() before calling this function."); |
| 2939 | output.set_size(data.num_samples(), |
| 2940 | filters.num_samples(), |
| 2941 | 1+(data.nr()+2*last_padding_y-filters.nr())/last_stride_y, |
| 2942 | 1+(data.nc()+2*last_padding_x-filters.nc())/last_stride_x); |
| 2943 | (*this)(add_to_output, static_cast<tensor&>(output),data,filters); |
| 2944 | } |
| 2945 | |
| 2946 | void tensor_conv::operator() ( |
| 2947 | const bool add_to_output, |
nothing calls this directly
no test coverage detected