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

Function FlipVarShape

python/mod_cvcuda/operators/OpFlip.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80ImageBatchVarShape FlipVarShape(ImageBatchVarShape &input, Tensor &flipCode, std::optional<Stream> pstream)
81{
82 ImageBatchVarShape output = ImageBatchVarShape::Create(input.capacity());
83
84 for (int i = 0; i < input.numImages(); ++i)
85 {
86 nvcv::ImageFormat format = input[i].format();
87 nvcv::Size2D size = input[i].size();
88 auto image = Image::Create(size, format);
89 output.pushBack(image);
90 }
91
92 return FlipVarShapeInto(output, input, flipCode, pstream);
93}
94
95} // namespace
96

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected