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

Function Conv2DVarShapeInto

python/mod_cvcuda/operators/OpConv2D.cpp:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace {
35
36ImageBatchVarShape Conv2DVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input, ImageBatchVarShape &kernel,
37 Tensor &kernel_anchor, NVCVBorderType border, std::optional<Stream> pstream)
38{
39 if (!pstream)
40 {
41 pstream = Stream::Current();
42 }
43
44 auto conv2D = CreateOperator<cvcuda::Conv2D>();
45
46 ResourceGuard guard(*pstream);
47 guard.add(LockMode::LOCK_MODE_READ, {input, kernel, kernel_anchor});
48 guard.add(LockMode::LOCK_MODE_WRITE, {output});
49 guard.add(LockMode::LOCK_MODE_NONE, {*conv2D});
50
51 conv2D->submit(pstream->cudaHandle(), input, output, kernel, kernel_anchor, border);
52
53 return output;
54}
55
56ImageBatchVarShape Conv2DVarShape(ImageBatchVarShape &input, ImageBatchVarShape &kernel, Tensor &kernel_anchor,
57 NVCVBorderType border, std::optional<Stream> pstream)

Callers 1

Conv2DVarShapeFunction · 0.85

Calls 3

cudaHandleMethod · 0.80
addMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected