tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Bug] relay parser not support var name contain "/"

Open sleepcoo opened this issue 1 year ago • 2 comments

def test_simple():
    code = """
#[version = "0.0.5"]
def @simple[A, B](%fdd/ddsa: fn(A) -> B, %xs: A) -> B {
  %fdd/ddsa(%xs)
}
def @main(%l: Tensor[(5, 5), float32]) -> Tensor[(5, 5), float32] {
  %0 = fn[A](%x: A) -> A {
    %x
  };
  @simple(%0, %l)
}
"""
    # error
    mod = tvm.parser.fromtext(code)

sleepcoo avatar Apr 03 '24 05:04 sleepcoo

Your simple code works fine with the latest TVM. Any other error information?

xhmelon avatar Apr 18 '24 18:04 xhmelon

it would be good if you can try out Relax

yongwww avatar Apr 24 '24 18:04 yongwww