| 71 | return legacy_shape; |
| 72 | } |
| 73 | int32_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 | |
| 92 | TensorInfo convert_to_legacy_tensor_info(const AclTensorDescriptor &desc) |
no test coverage detected