| 516 | } // namespace internal |
| 517 | |
| 518 | Result<std::shared_ptr<Tensor>> Tensor::FromArray(const std::shared_ptr<Array>& array, |
| 519 | bool allow_nulls) { |
| 520 | return array->ToTensor(allow_nulls); |
| 521 | } |
| 522 | |
| 523 | /// Constructor with strides and dimension names |
| 524 | Tensor::Tensor(const std::shared_ptr<DataType>& type, const std::shared_ptr<Buffer>& data, |