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

Function RandomResizedCrop

python/mod_cvcuda/operators/OpRandomResizedCrop.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55Tensor RandomResizedCrop(Tensor &input, const Shape &out_shape, double min_scale, double max_scale, double min_ratio,
56 double max_ratio, NVCVInterpolationType interp, uint32_t seed, std::optional<Stream> pstream)
57{
58 Tensor output = Tensor::Create(out_shape, input.dtype(), input.shape().layout());
59
60 return RandomResizedCropInto(output, input, min_scale, max_scale, min_ratio, max_ratio, interp, seed, pstream);
61}
62
63ImageBatchVarShape RandomResizedCropVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input,
64 double min_scale, double max_scale, double min_ratio, double max_ratio,

Callers

nothing calls this directly

Calls 4

RandomResizedCropIntoFunction · 0.85
dtypeMethod · 0.45
layoutMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected