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

Function id

mlx/array.h:222–224  ·  view source on GitHub ↗

A unique identifier for an array. */

Source from the content-addressed store, hash-verified

220
221 /** A unique identifier for an array. */
222 std::uintptr_t id() const {
223 return reinterpret_cast<std::uintptr_t>(array_desc_.get());
224 }
225
226 /** A unique identifier for an arrays primitive. */
227 std::uintptr_t primitive_id() const {

Callers 2

Calls 1

getMethod · 0.45

Tested by 2