| 319 | } |
| 320 | |
| 321 | std::shared_ptr<DataType> variable_shape_tensor( |
| 322 | const std::shared_ptr<DataType>& value_type, int32_t ndim, |
| 323 | std::vector<int64_t> permutation, std::vector<std::string> dim_names, |
| 324 | std::vector<std::optional<int64_t>> uniform_shape) { |
| 325 | auto maybe_type = |
| 326 | VariableShapeTensorType::Make(value_type, ndim, std::move(permutation), |
| 327 | std::move(dim_names), std::move(uniform_shape)); |
| 328 | ARROW_CHECK_OK(maybe_type.status()); |
| 329 | return maybe_type.MoveValueUnsafe(); |
| 330 | } |
| 331 | |
| 332 | } // namespace arrow::extension |