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

Method RawTensor

tests/RawTensor.h:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 */
63 template <typename T>
64 RawTensor(SimpleTensor<T> &&tensor)
65 {
66 _buffer = std::unique_ptr<uint8_t[]>(reinterpret_cast<uint8_t *>(tensor._buffer.release()));
67 _shape = std::move(tensor._shape);
68 _format = tensor._format;
69 _data_type = tensor._data_type;
70 _num_channels = tensor._num_channels;
71 _data_layout = tensor._data_layout;
72 }
73
74 /** Conversion operator to SimpleTensor.
75 *

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected