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

Method fill

mlx/data/Array.cpp:132–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void Array::fill(double value) {
133 ARRAY_DISPATCH(this, array_fill, data_.get(), size(), value);
134}
135
136void Array::squeeze(const std::vector<int>& dims) {
137 std::vector<int64_t> mask(ndim(), true);

Callers 2

padFunction · 0.80
batchFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected