MCPcopy Create free account
hub / github.com/NVIDIA-AI-IOT/redtail / PaddingPlugin

Method PaddingPlugin

stereoDNN/lib/padding_plugin.cpp:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16{
17public:
18 PaddingPlugin(DimsNCHW pad_start, DimsNCHW pad_end, ILogger& log, std::string name):
19 pad_start_(pad_start), pad_end_(pad_end), log_(log), name_(name)
20 {
21 // Only D end padding is currently supported.
22 assert(pad_start_.n() == 0);
23 assert(pad_start_.c() == 0);
24 assert(pad_start_.h() == 0);
25 assert(pad_start_.w() == 0);
26
27 assert(pad_end_.n() >= 0);
28 assert(pad_end_.c() == 0);
29 assert(pad_end_.h() == 0);
30 assert(pad_end_.w() == 0);
31 }
32
33 PaddingPlugin(PaddingPlugin&&) = delete;
34

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected