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

Function Reformat

python/mod_cvcuda/operators/OpReformat.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Tensor Reformat(Tensor &input, const nvcv::TensorLayout &out_layout, std::optional<Stream> pstream)
49{
50 nvcv::TensorShape out_shape = Permute(input.shape(), out_layout);
51
52 Tensor output = Tensor::Create(out_shape, input.dtype());
53
54 return ReformatInto(output, input, pstream);
55}
56
57} // namespace
58

Callers

nothing calls this directly

Calls 4

PermuteFunction · 0.85
ReformatIntoFunction · 0.85
shapeMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected