Skip to content

Conversation

@wrongtest-intellif
Copy link
Contributor

  • Allow i64 any value convert to Integer of proper bitwidth.

    import tvm
    from tvm import relax
    x = relax.Var("x", relax.TensorStructInfo((5, 784), "float32"))
    # just build an object with `Integer` typed field.
    x = relax.op.flip(x, 2**63-1).attrs.axis
    # maybe better to get T.int64(9223372036854775807) rather than -1
  • Ensure None any value's v_int64=0, since AnyHash depends on the repr value.

    m = tvm.ir.Map({None: 1})
    assert None in m   # get False if v_int64 not const initialized.

@tqchen tqchen merged commit b67650f into apache:main Aug 31, 2025
13 checks passed
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants