MCPcopy Create free account
hub / github.com/apache/arrow / ndim

Method ndim

cpp/src/arrow/c/dlpack.cc:300–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 const DLTensor& tensor() const { return ptr_->dl_tensor; }
299
300 int64_t ndim() const {
301 DCHECK_GE(tensor().ndim, 0);
302 return tensor().ndim;
303 }
304
305 template <typename T>
306 T* data_as() {

Callers 15

TensorToNdarrayFunction · 0.80
TEST_FFunction · 0.80
ConvertRowMajorTensorFunction · 0.80
ConvertColumnMajorTensorFunction · 0.80
ConvertStridedTensorFunction · 0.80
ConvertMethod · 0.80

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.64
CheckDLTensorFunction · 0.64
TEST_FFunction · 0.64