Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ROCm/AMDMIGraphX
/ ndim
Method
ndim
src/shape.cpp:389–396 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
387
}
388
389
std::size_t shape::ndim() const
390
{
391
if(this->dynamic())
392
{
393
return impl->m_dyn_dims.size();
394
}
395
return impl->m_lens.size();
396
}
397
398
std::size_t shape::elements() const { return impl->elements(); }
399
Callers
15
TEST_CASE
Function · 0.80
test_create_shape
Function · 0.80
test_create_shape_transposed
Function · 0.80
TEST_CASE
Function · 0.80
TEST_CASE
Function · 0.80
make_bcast_shape
Function · 0.80
apply
Method · 0.80
apply
Method · 0.80
apply
Method · 0.80
get_shapes_ndim
Method · 0.80
dyn_shape_from_shapes
Method · 0.80
apply
Method · 0.80
Calls
2
dynamic
Method · 0.95
size
Method · 0.45
Tested by
5
TEST_CASE
Function · 0.64
test_create_shape
Function · 0.64
test_create_shape_transposed
Function · 0.64
TEST_CASE
Function · 0.64
TEST_CASE
Function · 0.64