I’m trying to load a graph in text format with relay.fromtext(). Here’s the text:
graph="""
v0.0.1
fn (%x: Tensor[(1, 1, 100, 100), float32], %v1: Tensor[(10, 100), float32], %v4: float32)
{
%0 = transpose(%v1, axes=[1, 0])
%1 = transpose(%0, axes=[1, 0])
%2 = nn.dense(%x, %1, units=None)
add(%2, %v4)
}
“”"
Two errors are reported:
- token recognition error at: ‘.’
I searched the grammar file Relay.g4, are there’s no rules for ‘.’ - “axes” cannot be recognized.
This error seems to indicate that currently attributes cannot be parsed.
So I’m wondering if I want to load a graph built by relay APIs (previous graph is just built by APIs), should I modify the grammar file? Or does TVM team have a plan for supporting more complex grammar?