Skip to content
fn

mlx_shape_to_lucid

→Shape
int mlx_shape_to_lucid(const int & shape)

Convert an mlx::core::Shape to a Lucid Shape.

Widens the int32 dimensions to int64 for Lucid's canonical representation.

Parameters

shapeconst mlx::core::Shape&
Source MLX shape.

Returns

Shape

Lucid std::vector<int64_t> shape.