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

Function GetTensorShape

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

Source from the content-addressed store, hash-verified

84}
85
86std::vector<tensorflow::int64> GetTensorShape(const tensorflow::Tensor& t) {
87 std::vector<tensorflow::int64> shape(t.dims());
88 for (int i = 0; i < t.dims(); ++i) {
89 shape[i] = t.dim_size(i);
90 }
91 return shape;
92}
93
94template <typename T>
95std::vector<T> GetTensorData(const tensorflow::Tensor& t) {

Callers 10

TESTFunction · 0.70
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50
GetOutputShapeMethod · 0.50

Calls 2

dimsMethod · 0.45
dim_sizeMethod · 0.45

Tested by

no test coverage detected