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

Function MaxLocTensor

python/mod_cvcuda/operators/OpMinMaxLoc.cpp:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218TupleTensor3 MaxLocTensor(Tensor &input, int maxLocs, std::optional<Stream> pstream)
219{
220 auto inAccess = nvcv::TensorDataAccessStridedImagePlanar::Create(input.exportData());
221
222 maxLocs = maxLocs == 0 ? GetDefaultMaxLocs(inAccess->numCols(), inAccess->numRows()) : maxLocs;
223
224 return MaxLoc(input, input.dtype(), inAccess->numSamples(), maxLocs, pstream);
225}
226
227TupleTensor3 MaxLocVarShape(ImageBatchVarShape &input, int maxLocs, std::optional<Stream> pstream)
228{

Callers

nothing calls this directly

Calls 7

GetDefaultMaxLocsFunction · 0.85
MaxLocFunction · 0.85
exportDataMethod · 0.45
numColsMethod · 0.45
numRowsMethod · 0.45
dtypeMethod · 0.45
numSamplesMethod · 0.45

Tested by

no test coverage detected