MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / ndim

Method ndim

mlx/data/Array.cpp:49–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49int Array::ndim() const {
50 return shape_.size();
51}
52
53int64_t Array::shape(int d) const {
54 return shape_[checkdim(d)];

Callers 10

to_arrayFunction · 0.80
padFunction · 0.80
batchFunction · 0.80
subFunction · 0.80
levenshteinFunction · 0.80
uniq_tFunction · 0.80
remove_tFunction · 0.80
applyMethod · 0.80
apply_keyMethod · 0.80
nextMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected