[Apache TVM Discuss] [Development/pre-RFC] Pattern matching pass

2022-03-06 Thread MajorTom via Apache TVM Discuss


Hi,
I am trying to implement a simple pass that merges a certain pattern into a 
single "normalize" op. I use the **register_pattern_table** which I understand 
is support to register the pass.

 
def make_pattern():
data = wildcard()
data2 = wildcard()
data3 = wildcard()

copy_op =  is_op("copy")(data)
reshape1_op = is_op("reshape")(data2)
substract_op = is_op("subtract")(copy_op, reshape1_op)
reshape2_op = is_op("reshape")(data3)
divide_op = is_op("reshape")(substract_op, reshape2_op)
return divide_op


@register_pattern_table
def normalize_pattern():
normalize_pat = ("normalize", make_pattern())
normalize_patterns = [normalize_pat]
return normalize_patterns


I import this code in my test but nothing happens. the code is not called. what 
am I missing?
It will really help if you could show me a tutorial or example of adding a 
pattern matching pass end-to-end.





---
[Visit Topic](https://discuss.tvm.apache.org/t/pattern-matching-pass/12249/1) 
to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/5bba2ae042461451c2dd3bd8f5db0f06512267e93537509f547bfed380cab3b7).


[Apache TVM Discuss] [Meetup] Next TVM Community Meeting Mar 9

2022-03-06 Thread Andrew Reusch via Apache TVM Discuss


Hi all,

The next TVM Community Meeting is Wednesday, March 9 at 8:00am PST, 16:00 UTC 
(4:00pm London), 17:00 CEST, 21:30 India, 24:00 China. This is the first TVM 
Community Meeting of 2022 and is unified with the microTVM Community Meeting.

The agenda for this meeting can be found in the [agenda 
doc](https://docs.google.com/document/d/179l1WzqDiLXjjLmLopvxBSr0ylFS2plyXbeTtB8CteM/edit#heading=h.yjcjro6m0xi3).
 Anyone is welcomed to add items to the agenda doc–please note that we expect 
all agenda items to link to a forum post or RFC where notes and follow-up 
discussion can be held.

We’ll meet over Zoom for this one, and the link is also in the agenda doc 
posted above. Hope to see you all there!

Andrew





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/next-tvm-community-meeting-mar-9/12260/1)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/a23d447ecb3af8f8a794d3a6870a2db94b77a80b17acf2b0d2795b32a704eda3).