MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / Conv2DVarShape

Function Conv2DVarShape

python/mod_cvcuda/operators/OpConv2D.cpp:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56ImageBatchVarShape Conv2DVarShape(ImageBatchVarShape &input, ImageBatchVarShape &kernel, Tensor &kernel_anchor,
57 NVCVBorderType border, std::optional<Stream> pstream)
58{
59 ImageBatchVarShape output = ImageBatchVarShape::Create(input.capacity());
60
61 for (int i = 0; i < input.numImages(); ++i)
62 {
63 nvcv::ImageFormat format = input[i].format();
64 nvcv::Size2D size = input[i].size();
65 auto image = Image::Create(size, format);
66 output.pushBack(image);
67 }
68
69 return Conv2DVarShapeInto(output, input, kernel, kernel_anchor, border, pstream);
70}
71
72} // namespace
73

Callers

nothing calls this directly

Calls 6

Conv2DVarShapeIntoFunction · 0.85
capacityMethod · 0.45
numImagesMethod · 0.45
formatMethod · 0.45
sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected