Skip to content

Conversation

@junrushao
Copy link
Member

@junrushao junrushao commented Aug 19, 2022

Following #12197, this PR introduces Schedule.show() which convenience the user experience in the following two aspects:

  • Python syntax highlighting
  • Outputs a schedule function instead of standalone instructions so that it's easier to follow.

To demonstrate this change:

  • Before Schedule.show() is introduced:

image

  • After this change:

image

cc @junrushao @junrushao1994

@junrushao junrushao force-pushed the feature/2022-08-19/ux-print-trace branch from 00dc34c to 2dbaaa2 Compare August 19, 2022 22:12
@junrushao
Copy link
Member Author

CC: @ganler @tqchen @Hzfengsy

@junrushao junrushao marked this pull request as ready for review August 19, 2022 22:12
@junrushao junrushao force-pushed the feature/2022-08-19/ux-print-trace branch from 2dbaaa2 to 959a00b Compare August 19, 2022 22:20
@junrushao junrushao force-pushed the feature/2022-08-19/ux-print-trace branch from 2575d7c to e0a18cc Compare August 20, 2022 01:50
Copy link
Contributor

@ganler ganler left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @junrushao

Following apache#12197, this PR introduces
`Schedule.show()` which convenience the user experience in the following
two aspects:
- Python syntax highlighting
- Outputs a schedule function instead of standalone instructions so that
it's easier to follow.

To demonstrate this change:
- Before `Schedule.show()` is introduced:
<img width="555" alt="image" src="https://user-images.githubusercontent.com/22515877/185713487-03722566-1df7-45c7-a034-c1460d399681.png">

- After this change:
<img width="583" alt="image" src="https://user-images.githubusercontent.com/22515877/185713564-c54f3a9d-cd52-4709-a8b8-d8a61361e611.png">
@junrushao junrushao force-pushed the feature/2022-08-19/ux-print-trace branch from e0a18cc to 392a50a Compare August 20, 2022 07:01
@spectrometerHBH spectrometerHBH merged commit 3b3443b into apache:main Aug 20, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Following apache#12197, this PR introduces
`Schedule.show()` which convenience the user experience in the following
two aspects:
- Python syntax highlighting
- Outputs a schedule function instead of standalone instructions so that
it's easier to follow.

To demonstrate this change:
- Before `Schedule.show()` is introduced:
<img width="555" alt="image" src="https://user-images.githubusercontent.com/22515877/185713487-03722566-1df7-45c7-a034-c1460d399681.png">

- After this change:
<img width="583" alt="image" src="https://user-images.githubusercontent.com/22515877/185713564-c54f3a9d-cd52-4709-a8b8-d8a61361e611.png">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants