MCPcopy Create free account
hub / github.com/davisking/dlib / setup

Method setup

dlib/cuda/cpu_dlib.h:661–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659 ) {}
660
661 void setup(
662 const tensor& data, /* not used but required for interface */
663 const tensor& filters, /* not used but required for interface */
664 int stride_y,
665 int stride_x,
666 int padding_y,
667 int padding_x
668 )
669 {
670 (void)data; /* silence compiler */
671 DLIB_CASSERT(stride_y > 0 && stride_x > 0);
672 DLIB_CASSERT(0 <= padding_y && padding_y < filters.nr());
673 DLIB_CASSERT(0 <= padding_x && padding_x < filters.nc());
674 last_stride_y = stride_y;
675 last_stride_x = stride_x;
676 last_padding_y = padding_y;
677 last_padding_x = padding_x;
678 }
679
680 void operator() (
681 const bool add_to_output,

Callers

nothing calls this directly

Calls 2

nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected