MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetTensorData

Function GetTensorData

tensorflow/lite/delegates/flex/buffer_map_test.cc:95–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template <typename T>
95std::vector<T> GetTensorData(const tensorflow::Tensor& t) {
96 const T* data = t.flat<T>().data();
97 return std::vector<T>(data, data + t.NumElements());
98}
99
100TEST(BufferMapTest, EmptyBuffer) {
101 BufferMap buffer_map;

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
NumElementsMethod · 0.45

Tested by

no test coverage detected