| 405 | } |
| 406 | |
| 407 | std::shared_ptr<DataType> fixed_shape_tensor(const std::shared_ptr<DataType>& value_type, |
| 408 | const std::vector<int64_t>& shape, |
| 409 | const std::vector<int64_t>& permutation, |
| 410 | const std::vector<std::string>& dim_names) { |
| 411 | auto maybe_type = FixedShapeTensorType::Make(value_type, shape, permutation, dim_names); |
| 412 | ARROW_CHECK_OK(maybe_type.status()); |
| 413 | return maybe_type.MoveValueUnsafe(); |
| 414 | } |
| 415 | |
| 416 | } // namespace arrow::extension |