MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / copyCast

Function copyCast

tensorflow/lite/kernels/cast.cc:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template <typename FromT, typename ToT>
52void copyCast(const FromT* in, ToT* out, int num_elements) {
53 std::transform(in, in + num_elements, out,
54 [](FromT a) { return static_cast<ToT>(a); });
55}
56
57template <typename ToT>
58void copyCast(const std::complex<float>* in, ToT* out, int num_elements) {

Callers 1

copyToTensorFunction · 0.85

Calls 2

realFunction · 0.85
transformFunction · 0.50

Tested by

no test coverage detected