Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ shape
Method
shape
cpp/src/arrow/c/dlpack.cc:310–312 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
308
}
309
310
std::span<const int64_t> shape() const {
311
return {tensor().shape, static_cast<std::size_t>(ndim())};
312
}
313
314
/// Strides or empty span for old DLPack row-major convention.
315
std::span<const int64_t> strides() const {
Callers
15
ComputeNumElements
Method · 0.95
test_shape
Method · 0.45
test_shape
Method · 0.45
garrow_tensor_get_shape
Function · 0.45
garrow_fixed_shape_tensor_data_type_get_shape
Function · 0.45
TensorToNdarray
Function · 0.45
TEST
Function · 0.45
StridedTensorCountNonZero
Function · 0.45
StridedIntegerTensorContentEquals
Function · 0.45
StridedFloatTensorContentEquals
Function · 0.45
TensorEquals
Function · 0.45
Compare
Method · 0.45
Calls
1
ndim
Function · 0.50
Tested by
15
test_shape
Method · 0.36
test_shape
Method · 0.36
TEST
Function · 0.36
TEST_F
Function · 0.36
CheckTableToTensor
Function · 0.36
CheckTableToTensorRowMajor
Function · 0.36
TEST
Function · 0.36
TEST_F
Function · 0.36
TYPED_TEST_P
Function · 0.36
TEST_F
Function · 0.36
CheckTensor
Function · 0.36
CheckTensorRowMajor
Function · 0.36