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

ttrt add support for initialization function + ident check #296

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

nsmithtt
Copy link
Contributor

@nsmithtt nsmithtt commented Aug 5, 2024

  • New tensor initialization functions, for certain kinds of tests it's useful to initialize with a range of values vs random. In the future we could add more like uniform distribution.
  • Some tests, like for data movement, can be implemented to perform a trivial golden check where the input exactly matches the output. Add an identity flag which does this check.

@nsmithtt
Copy link
Contributor Author

nsmithtt commented Aug 5, 2024

@tapspatel, feel free to commandeer this PR if you want to do it another way. I had made these changes locally for a test I'm bringing up, since I had already done the work I figured I'd just post a PR with what I had.

@nsmithtt nsmithtt force-pushed the nsmith/ttrt-ident branch from 67a4764 to 94c1853 Compare August 8, 2024 03:15
- New tensor initialization functions, for certain kinds of tests it's
useful to initialize with a range of values vs random.  In the future we
could add more like uniform distribution.
- Some tests, like for data movement, can be implemented to perform a
trivial golden check where the input exactly matches the output. Add an
identity flag which does this check.
@nsmithtt nsmithtt force-pushed the nsmith/ttrt-ident branch from 94c1853 to ffc4160 Compare August 8, 2024 03:16
@nsmithtt
Copy link
Contributor Author

nsmithtt commented Aug 8, 2024

@tapspatel, are you good with any of this change?

@tapspatel
Copy link
Contributor

changes look good!

@nsmithtt nsmithtt merged commit 52ecaf0 into main Aug 8, 2024
6 checks passed
@nsmithtt nsmithtt deleted the nsmith/ttrt-ident branch August 8, 2024 14:35
nsmithtt added a commit that referenced this pull request Aug 9, 2024
- New tensor initialization functions, for certain kinds of tests it's
useful to initialize with a range of values vs random.  In the future we
could add more like uniform distribution.
- Some tests, like for data movement, can be implemented to perform a
trivial golden check where the input exactly matches the output. Add an
identity flag which does this check.
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