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

Function ConvertTo

python/mod_cvcuda/operators/OpConvertTo.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Tensor ConvertTo(Tensor &input, nvcv::DataType dtype, float scale, float offset, std::optional<Stream> pstream)
49{
50 Tensor output = Tensor::Create(input.shape(), dtype);
51
52 return ConvertToInto(output, input, scale, offset, pstream);
53}
54
55} // namespace
56

Callers

nothing calls this directly

Calls 2

ConvertToIntoFunction · 0.85
shapeMethod · 0.45

Tested by

no test coverage detected