Re: [dmlc/tvm] [RFC][Relay] Text Format Part 2 (#3016)

2019-06-20 Thread 雾雨魔理沙
@joshpoll what about type inference? How will it work if the type parameter is inferred? e.g. Some(5)? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/dmlc/tvm/issues/3016#issuecomment-504163322

Re: [dmlc/tvm] [RFC][Relay] Text Format Part 2 (#3016)

2019-06-20 Thread Josh Pollock
Here is a summary of the proposed text format changes. **RefCreate**: `ref(n)` **RefWrite**: `r := v` **RefRead**: `!r` **ADTs**: ``` type myVariant = | HasNothing | HasSingleInt(int) | HasSingleTuple((int, int)) | HasMultipleInts(int, int) | HasMultipleTuples((int, int), (int, int)) ```