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

Method buffer_info

python/src/buffer.h:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 std::vector<Py_ssize_t> strides;
63
64 buffer_info(
65 std::string format,
66 std::vector<Py_ssize_t> shape_in,
67 std::vector<Py_ssize_t> strides_in)
68 : format(std::move(format)),
69 shape(std::move(shape_in)),
70 strides(std::move(strides_in)) {}
71
72 buffer_info(const buffer_info&) = delete;
73 buffer_info& operator=(const buffer_info&) = delete;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected