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

Add TestUtils.randint + replace torch.randint with tu.randint #1276

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

ramiro050
Copy link
Collaborator

This commit adds a method to TestUtils that generates random integer
tensors with a similar interface to the TestUtils.rand. This commit
also replaces with tu.randint all test inputs generated with
torch.randint.

This commit adds a method to `TestUtils` that generates random integer
tensors with a similar interface to the `TestUtils.rand`. This commit
also replaces with `tu.randint` all test inputs generated with
`torch.randint`.
Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@silvasean silvasean left a comment

Choose a reason for hiding this comment

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

Great!

@ramiro050 ramiro050 merged commit e153694 into llvm:main Aug 26, 2022
@ramiro050 ramiro050 deleted the add-randint branch August 26, 2022 15:50
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.

3 participants