jorisvandenbossche commented on issue #38675: URL: https://github.com/apache/arrow/issues/38675#issuecomment-1810163119
And note that this has not directly to do with being nested, also for a flat list of pytorch tensors, you will get the same issue: ``` In [3]: pa.array([torch.zeros(5), torch.zeros(5)]) ... ArrowInvalid: Could not convert tensor([0., 0., 0., 0., 0.]) with type Tensor: did not recognize Python value type when inferring an Arrow data type ``` (but nesting in a dictionary makes it certainly harder to work around this, for the non-nested version above you can create a ListArray or FixedShapeTensorArray from a single dim+1 torch tensor) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
