[TVM Discuss] [Development] [Relay][ONNX] KeyError: 'W' when compiling from onnx

2019-04-07 Thread mnboos via TVM Discuss
>From what I know now, it looks like TVM doesn't take the >`onnx_model.graph.initializer` into account when creating a list of inputs >like above. --- [Visit Topic](https://discuss.tvm.ai/t/relay-onnx-keyerror-w-when-compiling-from-onnx/2102/2) to respond. You are receiving this because

Re: [dmlc/tvm] [RFC] More PackedFunc metadata (#2983)

2019-04-07 Thread Tianqi Chen
RE: Node hierarchy. One ultimate direction is to use a DSL(for example python with typing info) as a way of declaring the node relations and fields and create generator util to generate the classes. The main challenge is to keep most of the data structures purely in C(so we can get ABI compatibi

Re: [dmlc/tvm] [VOTE] Apache Transition Plan (#2973)

2019-04-07 Thread Yida Wang
+1 -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dmlc/tvm/issues/2973#issuecomment-480669435

Re: [dmlc/tvm] [REFACTOR][RFC] Use more TypedPackedFuncs (#2981)

2019-04-07 Thread James Gilles
> The main question is the naming convention to make sure we are not confusing > the users. Yeah I didn't put any thought into these, would welcome suggestions. Could do something like `set_body_to_function_pointer` / `set_body_to_method_pointer`, although those are a bit verbose. -- You are

Re: [dmlc/tvm] [VOTE] Apache Transition Plan (#2973)

2019-04-07 Thread Hiroyuki Makino
+1 -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dmlc/tvm/issues/2973#issuecomment-480660138

Re: [dmlc/tvm] [VOTE] Apache Transition Plan (#2973)

2019-04-07 Thread Wuwei Lin
+1 -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dmlc/tvm/issues/2973#issuecomment-480658092

Re: [dmlc/tvm] [RFC] More PackedFunc metadata (#2983)

2019-04-07 Thread James Gilles
@tqchen, yeah those are good points. One possibility would be to use hand-written languages for first-tier-supported languages like python and offer the auto-generated wrappers for other languages. If you did end up switching fully to auto-generated wrappers you could take steps like committing

Re: [dmlc/tvm] [RFC] More PackedFunc metadata (#2983)

2019-04-07 Thread James Gilles
>From other thread: @tqchen: > I will summarize some of my take here. I like the idea of Node hierarchy > compile time generation. This is something I have thought about and discussed > with @jroesch for a while and might help [#2523 > (comment)](https://github.com/dmlc/tvm/issues/2523#issuecom

Re: [dmlc/tvm] [RFC] More PackedFunc metadata (#2983)

2019-04-07 Thread Tianqi Chen
One thing I would like to mention is that manual wrapping has its merit :) Take the following wrapper code for scan as an example. By manually wrapping it in python, we can benefit from: - A clear signature that users can look up - Keyword argument and default value - Python-specific documents, i

[dmlc/tvm] [RFC] More PackedFunc metadata (#2983)

2019-04-07 Thread James Gilles
(Moved from #2981) Proposal: add type signature metadata to PackedFunc Each `PackedFunc` would have an optional field describing what arguments it takes and what type it returns. This field would be automatically populated during conversion from a `TypedPackedFunc`. Once we have these type si

Re: [dmlc/tvm] [REFACTOR][RFC] Use more TypedPackedFuncs (#2981)

2019-04-07 Thread Nick Hynes
This idea actually comes a lot :P https://github.com/dmlc/tvm/pull/2328#issuecomment-450001679 I know, for sure, that we could get good docs with _really good_ codegen like that offered by Rust macros, but I also know for sure that we're not about to rewrite TVM in Rust :) I think that the boi

Re: [dmlc/tvm] [REFACTOR][RFC] Use more TypedPackedFuncs (#2981)

2019-04-07 Thread Tianqi Chen
Thanks for the contribution, I like the automated detection of the signatures. The main question is the naming convention to make sure we are not confusing the users. Let us open a new issue about other parts of RFC. I will summarize some of my take here(which can be moved to the RFC). I like

Re: [dmlc/tvm] [REFACTOR][RFC] Use more TypedPackedFuncs (#2981)

2019-04-07 Thread James Gilles
cc @nhynes @tqchen -- 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/pull/2981#issuecomment-480622604

[dmlc/tvm] [REFACTOR][RFC] Use more TypedPackedFuncs (#2981)

2019-04-07 Thread James Gilles
This PR converts a good chunk of TVM's global `PackedFunc`s to be `TypedPackedFunc`s. Right now, this shouldn't actually change any behavior, since the type information is immediately discarded once the functions are registered in the `Registry`. It does make things a lot shorter, using a few

Re: [dmlc/tvm] [VOTE] Apache Transition Plan (#2973)

2019-04-07 Thread Theodore Omtzigt
+1 -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dmlc/tvm/issues/2973#issuecomment-480616095

[TVM Discuss] [Development] Google lasted work: MLIR Primer

2019-04-07 Thread Mei Ye via TVM Discuss
In my vision, there could be a vendor-neutral library that implements higher level MLIR dialect operators in lower (algebraic) level. There could be a graph optimizer, a tensor optimizer and a traditional compiler optimizer. Graph optimizer does higher level graph optimizations like fusion

Re: [dmlc/tvm] [VOTE] Apache Transition Plan (#2973)

2019-04-07 Thread Ehsan M. Kermani
+1 -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/dmlc/tvm/issues/2973#issuecomment-480550080