Skip to content

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

@hypercubestart

Description

@hypercubestart

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

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