MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / fill_tensor

Function fill_tensor

tests/validation/CPP/TopKV.cpp:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50{
51template <typename U, typename T>
52inline void fill_tensor(U &&tensor, const std::vector<T> &v)
53{
54 std::memcpy(tensor.data(), v.data(), sizeof(T) * v.size());
55}
56} // namespace
57
58TEST_SUITE(CPP)

Callers 4

TEST_CASEFunction · 0.70
access_tensorMethod · 0.50
do_setupMethod · 0.50
do_setupMethod · 0.50

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected