| 186 | } |
| 187 | |
| 188 | static std::vector<executorch::aten::SizesType> get_tensor_dims(const TensorInfo& tensor_info) { |
| 189 | std::vector<executorch::aten::SizesType> tensor_dims(tensor_info.sizes().begin(), tensor_info.sizes().end()); |
| 190 | return tensor_dims; |
| 191 | } |
| 192 | |
| 193 | static size_t get_num_elems(const std::vector<executorch::aten::SizesType>& tensor_dims) { |
| 194 | size_t numel = 1; |