Skip to content

2-runtime/XValue 标量带 dims(ndarray)+ tutorial 04-array → 04-ndarray #46

Description

@miaobyte

背景

XValue 标量类型(int64/float64 等)此前只表示标量或一维数组;需支持多维 shape(ndarray,[dims]dtype),与 numpy 扩展对齐。

需求描述

  • runtime/xvalue.c:kvlangXvalueNewTlvDims 显式 ndim/dims 构造(保多维 shape,供 xv.shape/xv.set)。
  • layout/lower.rs、builtin.rs 同步。
  • tutorial 04-array → 04-ndarray(含 xv_shape.kv);leetcode 等用例同步。
  • 三仓库 decode 统一带 dims。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions