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

Function Threshold

python/mod_cvcuda/operators/OpThreshold.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53Tensor Threshold(Tensor &input, Tensor &thresh, Tensor &maxval, uint32_t type, std::optional<Stream> pstream)
54{
55 Tensor output = Tensor::Create(input.shape(), input.dtype());
56
57 return ThresholdInto(output, input, thresh, maxval, type, pstream);
58}
59
60ImageBatchVarShape ThresholdVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input, Tensor &thresh,
61 Tensor &maxval, uint32_t type, std::optional<Stream> pstream)

Callers

nothing calls this directly

Calls 3

ThresholdIntoFunction · 0.85
shapeMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected