Copilot commented on code in PR #50929:
URL: https://github.com/apache/arrow/pull/50929#discussion_r3903923401


##########
cpp/src/arrow/tensor.h:
##########
@@ -109,6 +109,12 @@ class ARROW_EXPORT Tensor {
     return std::make_shared<Tensor>(type, data, shape, strides, dim_names);
   }
 
+  /// \brief Attempt to create a Tensor from an Array.

Review Comment:
   `Tensor::FromArray` takes a `std::shared_ptr<Array>` but `arrow::Array` is 
not declared in this header. `tensor.h` should be self-contained; add a forward 
declaration for `Array` before the `Tensor` class (or include the appropriate 
header) to avoid compilation errors.



-- 
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]

Reply via email to