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

Function TensorHQResize

python/mod_cvcuda/operators/OpHQResize.cpp:434–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434Tensor TensorHQResize(Tensor &src, const Shape &outShape, std::optional<bool> antialias, std::optional<Roi> roi,
435 std::optional<NVCVInterpolationType> interpolation,
436 std::optional<NVCVInterpolationType> minInterpolation,
437 std::optional<NVCVInterpolationType> magInterpolation, std::optional<Stream> pstream)
438{
439 auto resizedShape = ResizedTensorShape(src.layout(), src.shape(), outShape);
440 Tensor dst = Tensor::Create(resizedShape, src.dtype(), src.layout());
441 return TensorHQResizeInto(dst, src, antialias, roi, interpolation, minInterpolation, magInterpolation, pstream);
442}
443
444ImageBatchVarShape VarShapeHQResizeInto(ImageBatchVarShape &dst, const ImageBatchVarShape &src,
445 std::optional<bool> antialias, const std::optional<Rois> &roi,

Callers

nothing calls this directly

Calls 5

ResizedTensorShapeFunction · 0.85
TensorHQResizeIntoFunction · 0.85
layoutMethod · 0.45
shapeMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected