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

Function MinMaxLocTensor

python/mod_cvcuda/operators/OpMinMaxLoc.cpp:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254TupleTensor6 MinMaxLocTensor(Tensor &input, int maxLocs, std::optional<Stream> pstream)
255{
256 auto inAccess = nvcv::TensorDataAccessStridedImagePlanar::Create(input.exportData());
257
258 maxLocs = maxLocs == 0 ? GetDefaultMaxLocs(inAccess->numCols(), inAccess->numRows()) : maxLocs;
259
260 return MinMaxLoc(input, input.dtype(), inAccess->numSamples(), maxLocs, pstream);
261}
262
263TupleTensor6 MinMaxLocVarShape(ImageBatchVarShape &input, int maxLocs, std::optional<Stream> pstream)
264{

Callers

nothing calls this directly

Calls 7

GetDefaultMaxLocsFunction · 0.85
MinMaxLocFunction · 0.70
exportDataMethod · 0.45
numColsMethod · 0.45
numRowsMethod · 0.45
dtypeMethod · 0.45
numSamplesMethod · 0.45

Tested by

no test coverage detected