MCPcopy 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
389std::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
398std::size_t shape::elements() const { return impl->elements(); }
399

Callers 15

TEST_CASEFunction · 0.80
test_create_shapeFunction · 0.80
TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
make_bcast_shapeFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
get_shapes_ndimMethod · 0.80
dyn_shape_from_shapesMethod · 0.80
applyMethod · 0.80

Calls 2

dynamicMethod · 0.95
sizeMethod · 0.45

Tested by 5

TEST_CASEFunction · 0.64
test_create_shapeFunction · 0.64
TEST_CASEFunction · 0.64
TEST_CASEFunction · 0.64