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

[Target] Use TargetNode::attrs for Target serialization #5993

Merged
merged 4 commits into from
Jul 5, 2020
Merged

[Target] Use TargetNode::attrs for Target serialization #5993

merged 4 commits into from
Jul 5, 2020

Conversation

junrushao
Copy link
Member

@junrushao junrushao commented Jul 4, 2020

This PR contains several minor but breaking changes as mentioned in #5960.

  1. Use TargetNode::attrs for serialization, which means that the raw string exported from target object may largely differ from the raw string input to create target object.
  2. Change type of -mattr to Array<String> from String.
  3. Remove keys from attrs after parsing, in order to avoid potential duplication and confusion. De-duplicate keys after parsing.
  4. -target is migrated to -mtriple to avoid potential confusion.

Future work:

  1. -device should be deprecated.
  2. -model is used in autotvm, should migrate to tag as per TVM Target Specification.

@junrushao
Copy link
Member Author

CC: @tqchen @icemelon9

@tqchen tqchen merged commit 67a7497 into apache:master Jul 5, 2020
@tqchen
Copy link
Member

tqchen commented Jul 5, 2020

Thanks @junrushao1994

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.

2 participants