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

Function fill_tensor

tests/validation/CL/GenerateProposalsLayer.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
57template <typename T>
58inline void fill_tensor(CLAccessor &&tensor, const std::vector<T> &v)

Callers 1

Calls 5

CoordinatesClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45
data_layoutMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected