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

Function create_tensor_shape_array

src/common/utils/LegacySupport.cpp:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 return legacy_shape;
72}
73int32_t *create_tensor_shape_array(const TensorInfo &info)
74{
75 const auto num_dims = info.num_dimensions();
76 if (num_dims <= 0)
77 {
78 return nullptr;
79 }
80
81 int32_t *shape_array = new int32_t[num_dims];
82
83 for (size_t d = 0; d < num_dims; ++d)
84 {
85 shape_array[d] = info.tensor_shape()[d];
86 }
87
88 return shape_array;
89}
90} // namespace
91
92TensorInfo convert_to_legacy_tensor_info(const AclTensorDescriptor &desc)

Callers 1

convert_to_descriptorFunction · 0.85

Calls 1

num_dimensionsMethod · 0.45

Tested by

no test coverage detected