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

Function VarShapeNormalize

python/mod_cvcuda/operators/OpNormalize.cpp:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100ImageBatchVarShape VarShapeNormalize(ImageBatchVarShape &input, Tensor &base, Tensor &scale,
101 std::optional<uint32_t> flags, float globalScale, float globalShift, float epsilon,
102 std::optional<Stream> pstream)
103{
104 ImageBatchVarShape output = ImageBatchVarShape::Create(input.capacity());
105
106 for (int i = 0; i < input.numImages(); ++i)
107 {
108 output.pushBack(Image::Create(input[i].size(), input[i].format()));
109 }
110
111 return VarShapeNormalizeInto(output, input, base, scale, flags, globalScale, globalShift, epsilon, pstream);
112}
113
114} // namespace
115

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected