Skip to content

Tvm.parser.fromtext() doesn't work with custom data type?! #8046

@sahooora

Description

@sahooora

Hi,

I'm using my custom data type in tvm-byodt framework. For the following code snippet I get an error:

...
r = """
#[version = "0.0.5"]
def @main (%x: Tensor[(3), custom[myfloat]32], %y: Tensor[(3), custom[myfloat]32]) {
  %0 = subtract(%x, %y);
  multiply(%0, %0)
}
"""
module = tvm.parser.fromtext(source = r)

Error:
TVMError: expected opening brace after 'custom' type incustom

Does anybody know why I get this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    relay:parserRelay parser: src/parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions