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

Function tensorLike

python/mod_cvcuda/operators/OpColorTwist.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace {
31
32inline Tensor tensorLike(Tensor &src)
33{
34 const auto &srcShape = src.shape();
35 Shape dstShape = nvcvpy::CreateShape(srcShape);
36
37 return Tensor::Create(dstShape, src.dtype(), src.layout());
38}
39
40inline ImageBatchVarShape batchLike(ImageBatchVarShape &src)
41{

Callers 1

ColorTwistMatrixFunction · 0.70

Calls 4

CreateShapeFunction · 0.85
shapeMethod · 0.45
dtypeMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected