[TVM Discuss] [Questions] [PattenLang]How to match op according to element type of input and output

2020-06-01 Thread Lixiaoquan via TVM Discuss


Thanks a lot for this detail sample!





---
[Visit 
Topic](https://discuss.tvm.ai/t/pattenlang-how-to-match-op-according-to-element-type-of-input-and-output/6846/7)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/011c799cc49d73b6d74ae5e5301ed7f276c8c9ae74b39b99cc023ae9f9a6b479).


[TVM Discuss] [Questions] [PattenLang]How to match op according to element type of input and output

2020-05-31 Thread Lixiaoquan via TVM Discuss


I'm afraid I haven't made my point clear.  By using has_type, we can match to a 
specific dtype, but the shape of tensor is also fixed. By using wildcard(), we 
can match to (**AnyShape**, **AnyType**).  How to achieve something like 
has_type((**AnyShape**, 'float32'))?
```
in1 = wildcard()
in2 = wildcard()
pat = is_op('add')(in1, in2).has_type(relay.TensorType((10, 10), 'float32'))

x = relay.var('x', shape=(10, 10), dtype='float32')
pat.match(relay.add(x, x))
```
Thanks





---
[Visit 
Topic](https://discuss.tvm.ai/t/pattenlang-how-to-match-op-according-to-element-type-of-input-and-output/6846/5)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/b9345d84e5dd4935dc572de4ade3aa61db9de9184ec637b34bc5df8962da94df).


[TVM Discuss] [Questions] [PattenLang]How to match op according to element type of input and output

2020-05-30 Thread Lixiaoquan via TVM Discuss


Can it match shape other than (10,10)?





---
[Visit 
Topic](https://discuss.tvm.ai/t/pattenlang-how-to-match-op-according-to-element-type-of-input-and-output/6846/3)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/88e97fd877f9f31ebb90fa98bbf2fb7000a177f659d77f0ca894fad1539a6dcd).


[TVM Discuss] [Questions] [PattenLang]How to match op according to element type of input and output

2020-05-30 Thread Lixiaoquan via TVM Discuss


Current TypePattern requires type in pattern matches type in expr exactly. Is 
there a way to match only according to element type. For example, match a fp16 
*add*?





---
[Visit 
Topic](https://discuss.tvm.ai/t/pattenlang-how-to-match-op-according-to-element-type-of-input-and-output/6846/1)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/b4fb4a78777b3a52cfdc29cea58b373ac989ceb5a5a6f6eaf1c0c0befca8c152).


[TVM Discuss] [Questions] How to serialize a Relay module?

2020-03-25 Thread Lixiaoquan via TVM Discuss


Is it possbile to serialize a Relay module (tvm.module.IRModule)?

If not, is there any plan to support this?

Thanks





---
[Visit Topic](https://discuss.tvm.ai/t/how-to-serialize-a-relay-module/6087/1) 
to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/796bf63bf005829b29a5fcf0b5d305e7e6191d35bef65fb541719bb12ead7ee8).


[TVM Discuss] [Questions] How does a Relay OP support variable length parameter list?

2020-03-24 Thread Lixiaoquan via TVM Discuss


I think the relay's convention is to convert multiple parameters into a tuple.





---
[Visit 
Topic](https://discuss.tvm.ai/t/how-does-a-relay-op-support-variable-length-parameter-list/1753/3)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/84312964adddc5fb3b176e9ef83681d8047fd267e0c831e9e4ecfe85d0f0b339).