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

Method shape

mlx/data/Array.cpp:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53int64_t Array::shape(int d) const {
54 return shape_[checkdim(d)];
55}
56
57int64_t Array::size() const {
58 int64_t size = 1;

Callers 15

mlx_data_export_datasetFunction · 0.45
init_mlx_data_coreFunction · 0.45
to_arrayFunction · 0.45
to_py_arrayFunction · 0.45
cloneFunction · 0.45
padFunction · 0.45
sliceFunction · 0.45
copyFunction · 0.45
batchFunction · 0.45
subFunction · 0.45
applyFunction · 0.45
levenshteinFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected