[PatternLang]Conditionally Embedding Constants in Partitioned Functions (#5693)
authorMatthew Brookhart <mbrookhart@octoml.ai>
Sat, 30 May 2020 01:07:07 +0000 (18:07 -0700)
committerGitHub <noreply@github.com>
Sat, 30 May 2020 01:07:07 +0000 (10:07 +0900)
commit2cd5117096bb15045bec9fec6b544d3e0405cf25
tree48336b640ef6187f26f484f3cd13b001f1da75b1
parent1ae7162f5e11d8244188b88fd99b6b1b635cd629
[PatternLang]Conditionally Embedding Constants in Partitioned Functions (#5693)

* Embed constants in the partition function if the pattern explicity requests constants

fix rst

fix pylint

* improve comments based on Cody's feedback
docs/langref/relay_pattern.rst
python/tvm/relay/dataflow_pattern/__init__.py
src/relay/ir/dataflow_matcher.cc
tests/python/relay/test_dataflow_pattern.py