mlx.core.asarray# asarray(a: scalar | array | Sequence, dtype: Dtype | None = None, *, copy: bool | None = None) → array# Convert the input to an array. 参数: a -- Input data. dtype (Dtype, optional) -- The desired data-type for the array. copy (bool, optional) -- Must be True or unspecified. False is not supported, since MLX has no in-place operations and cannot return a non-copying view. 返回: An array interpretation of the input. 返回类型: array 抛出: ValueError -- If copy is False.