Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Frontend][Relay] YOLO module is unparsable #6962

Closed
hypercubestart opened this issue Nov 23, 2020 · 0 comments · Fixed by #6963
Closed

[Frontend][Relay] YOLO module is unparsable #6962

hypercubestart opened this issue Nov 23, 2020 · 0 comments · Fixed by #6963

Comments

@hypercubestart
Copy link
Contributor

The module generated from the code in this tutorial: https://tvm.apache.org/docs/tutorials/frontend/from_darknet.html
causes the following error when parsed by:

import tvm
tvm.parser.parse(mod.astext())

error: expected a local variable found ., which is caused by formals (i.e %LAYERTYPE.CONVOLUTIONAL0_weight: Tensor[(32, 3, 3, 3), float32]) which the '.' character, which is unrecognized by the parser.

@jroesch recommended two options:

  1. modify importer to replace invalid characters
  2. modify parser to handle the '.' character
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 a pull request may close this issue.

1 participant