| 395 | } |
| 396 | |
| 397 | std::shared_ptr<DataType> fixed_shape_tensor(const std::shared_ptr<DataType>& value_type, |
| 398 | const std::vector<int64_t>& shape, |
| 399 | const std::vector<int64_t>& permutation, |
| 400 | const std::vector<std::string>& dim_names) { |
| 401 | auto maybe_type = FixedShapeTensorType::Make(value_type, shape, permutation, dim_names); |
| 402 | ARROW_CHECK_OK(maybe_type.status()); |
| 403 | return maybe_type.MoveValueUnsafe(); |
| 404 | } |
| 405 | |
| 406 | } // namespace arrow::extension |