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

Function reshape

mlx/data/Array.cpp:219–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219std::shared_ptr<Array> reshape(
220 const std::shared_ptr<const Array>& arr,
221 const std::vector<int64_t>& shape) {
222 auto dst = std::make_shared<Array>(arr);
223 dst->reshape(shape);
224 return dst;
225}
226
227std::shared_ptr<Array> squeeze(
228 const std::shared_ptr<const Array>& arr,

Callers 1

apply_keyMethod · 0.85

Calls 1

reshapeMethod · 0.80

Tested by

no test coverage detected