MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / load

Method load

include/core/tensor.h:243–245  ·  view source on GitHub ↗

\brief load single data into tensor.

Source from the content-addressed store, hash-verified

241
242 /// \brief load single data into tensor.
243 inline void load(const T &data, std::vector<size_t> indices) {
244 this->operator()(indices) = data;
245 }
246 inline void load(const T &data, size_t i, size_t j = 0, size_t k = 0,
247 size_t l = 0, size_t m = 0) {
248 this->operator()(i, j, k, l, m) = data;

Callers 15

addOPNodeMethod · 0.45
mainMethod · 0.45
test_non_detailedFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

operator()Method · 0.45
lengthMethod · 0.45
sizeMethod · 0.45

Tested by 1

test_non_detailedFunction · 0.36