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

Function fill_tensor

tests/validation/NEON/GenerateProposalsLayer.cpp:53–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename U, typename T>
53inline void fill_tensor(U &&tensor, const std::vector<T> &v)
54{
55 std::memcpy(tensor.data(), v.data(), sizeof(T) * v.size());
56}
57
58template <typename T>
59inline void fill_tensor(Accessor &&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