rok commented on code in PR #38008:
URL: https://github.com/apache/arrow/pull/38008#discussion_r1409380255
##########
python/pyarrow/includes/libarrow.pxd:
##########
@@ -2644,6 +2649,35 @@ cdef extern from "arrow/extension_type.h" namespace
"arrow":
shared_ptr[CArray] storage()
+cdef extern from "arrow/extension/variable_shape_tensor.h" namespace
"arrow::extension":
+ cdef cppclass CVariableShapeTensorType \
+ " arrow::extension::VariableShapeTensorType"(CExtensionType):
+
+ CResult[shared_ptr[CTensor]] GetTensor(const
shared_ptr[CExtensionScalar]& scalar) const
+
+ @staticmethod
+ CResult[shared_ptr[CDataType]] Make(const shared_ptr[CDataType]&
value_type,
+ const uint32_t ndim,
+ const vector[int64_t]& permutation,
+ const vector[c_string]& dim_names,
+ const vector[optional[int64_t]]&
uniform_shape)
+
+ CResult[shared_ptr[CDataType]] Deserialize(const shared_ptr[CDataType]
storage_type,
+ const c_string&
serialized_data) const
+
+ c_string Serialize() const
Review Comment:
Removed.
--
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]