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

adding links to elaborative testing #155

Merged
merged 2 commits into from
Sep 23, 2022
Merged

Conversation

sdasgup3
Copy link
Member

@sdasgup3 sdasgup3 commented Sep 19, 2022

fixes #36

The indent is to differentiate the added link to the following "Back to Ops" link.

@sdasgup3 sdasgup3 requested a review from burmako September 19, 2022 23:26
@sdasgup3 sdasgup3 self-assigned this Sep 19, 2022
@sdasgup3 sdasgup3 added the Spec label Sep 19, 2022
@sdasgup3 sdasgup3 requested a review from ghpvnist September 19, 2022 23:27
docs/spec_draft.md Outdated Show resolved Hide resolved
@@ -229,6 +229,8 @@ the IEEE-754 specification.
// %result: [[6, 8], [10, 12]]
```

 [More Examples](https://github.com/sdasgup3/stablehlo/blob/main/stablehlo/tests/interpret_add.mlir)

Copy link
Contributor

Choose a reason for hiding this comment

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

Also what do you think about turning "Examples` into a link? We don't really need to keep examples in the markdown file once we have exhaustive tests, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

We already thought about this and here are our thoughts:

We want to keep a short example right in the spec to demonstrate, using a trivial (no corner cases) example, the functioning of the op and ask the reader to follow the link for more detailed tests. I believe having that quick-example-view provides better experience.  Having said that, I agree that the example section of spec should be concise: One representative should be enough to capture the high level behavior unless the there are multiple behaviors like bitwise ops.

What do you think? 

Copy link
Contributor

Choose a reason for hiding this comment

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

" believe having that quick-example-view provides better experience". Sounds good, let's give this a try and see how it works out.

@sdasgup3 sdasgup3 force-pushed the issue-36 branch 4 times, most recently from 4ebeaa9 to 0c4f0ec Compare September 21, 2022 18:39
@@ -229,6 +229,8 @@ the IEEE-754 specification.
// %result: [[6, 8], [10, 12]]
```

 [More Examples](https://github.com/sdasgup3/stablehlo/blob/main/stablehlo/tests/interpret_add.mlir)

Copy link
Contributor

Choose a reason for hiding this comment

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

" believe having that quick-example-view provides better experience". Sounds good, let's give this a try and see how it works out.

@sdasgup3 sdasgup3 merged commit df38d90 into openxla:main Sep 23, 2022
GleasonK pushed a commit to GleasonK/stablehlo that referenced this pull request Oct 24, 2022
Adding hyperlinks in spec to test-files having elaborative tests.
GleasonK pushed a commit to GleasonK/stablehlo that referenced this pull request Nov 10, 2022
Adding hyperlinks in spec to test-files having elaborative tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device better ways to link examples to an op specification
3 participants