Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] Establish printer in the source folder #4752

Merged
merged 2 commits into from
Jan 21, 2020
Merged

Conversation

tqchen
Copy link
Member

@tqchen tqchen commented Jan 20, 2020

As we move towards the unified IR, we will eventually want to build a unified
printers for both relay and TIR.

This PR isolate the printer component into a separate folder in src as a first step.

  • Refactored the Doc DSL using Object, clean up APIs.
  • Isolate out the meta data into a header.
  • move printer into relay_text_printer, add comments about further TODos.
  • Rename NodePrinter->ReprPrinter to distinguish it from the rest of the printers(TextPrinter)

depends on #4746

@tqchen
Copy link
Member Author

tqchen commented Jan 20, 2020

As we move towards the unified IR, we will eventually want to build a unified
printers for both relay and TIR.

This PR isolate the printer component into a separate folder in src as a first step.

- Refactored the Doc DSL using Object, clean up APIs.
- Isolate out the meta data into a header.
- move printer into relay_text_printer, add comments about further TODos.
Copy link
Contributor

@MarisaKirisame MarisaKirisame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will there be plan to unify the two printer?

@tqchen tqchen merged commit e4d817d into apache:master Jan 21, 2020
@tqchen
Copy link
Member Author

tqchen commented Jan 21, 2020

Thanks @MarisaKirisame @ZihengJiang We will keep ReprPrintr and TextPrinter separate but might redirect some of the ReprPrinter to TextPrinter when it makes sense. There are list of todos in the text printer to add more support for the low-level IR

@tqchen tqchen deleted the printer branch February 10, 2020 19:24
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 26, 2020
* [REFACTOR] Establish printer in the source folder.

As we move towards the unified IR, we will eventually want to build a unified
printers for both relay and TIR.

This PR isolate the printer component into a separate folder in src as a first step.

- Refactored the Doc DSL using Object, clean up APIs.
- Isolate out the meta data into a header.
- move printer into relay_text_printer, add comments about further TODos.

* Rename NodePrinter -> ReprPrinter to distinguish it from other printers
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 28, 2020
* [REFACTOR] Establish printer in the source folder.

As we move towards the unified IR, we will eventually want to build a unified
printers for both relay and TIR.

This PR isolate the printer component into a separate folder in src as a first step.

- Refactored the Doc DSL using Object, clean up APIs.
- Isolate out the meta data into a header.
- move printer into relay_text_printer, add comments about further TODos.

* Rename NodePrinter -> ReprPrinter to distinguish it from other printers
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2020
* [REFACTOR] Establish printer in the source folder.

As we move towards the unified IR, we will eventually want to build a unified
printers for both relay and TIR.

This PR isolate the printer component into a separate folder in src as a first step.

- Refactored the Doc DSL using Object, clean up APIs.
- Isolate out the meta data into a header.
- move printer into relay_text_printer, add comments about further TODos.

* Rename NodePrinter -> ReprPrinter to distinguish it from other printers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants