-
Notifications
You must be signed in to change notification settings - Fork 107
feat(atenlib): typing module #233
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
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
2c8ee88
feat(atenlib): establish the aten-lib directory
justinchuby 40af0b4
Update base for Update on "feat(atenlib): establish the aten-lib dire…
justinchuby ee554d7
Update on "feat(atenlib): establish the aten-lib directory"
justinchuby fa8ce18
feat(atenlib): Create sample functions and tests
justinchuby 6d426b5
Update base for Update on "feat(atenlib): Create sample functions and…
justinchuby bb9fbee
Update on "feat(atenlib): Create sample functions and tests with OpInfo"
justinchuby 0aed28e
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 91aa327
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 00a081b
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby fce8072
Update on "feat(atenlib): create tests with OpInfo"
justinchuby af56008
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 8c0b370
Update on "feat(atenlib): create tests with OpInfo"
justinchuby bfeaefc
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby 8dc3d15
Update on "feat(atenlib): create tests with OpInfo"
justinchuby 46aa719
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby d87f309
Update on "feat(atenlib): create tests with OpInfo"
justinchuby afa50e3
feat: aten function signature generator
justinchuby 1b2674d
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby 1861734
Update on "feat(atenlib): aten function signature generator"
justinchuby 64810de
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby 421e9e4
Update on "feat(atenlib): aten function signature generator"
justinchuby c566e24
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby 15ecd59
Update on "feat(atenlib): aten function signature generator"
justinchuby 2ab2fc3
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby 91fb612
Update on "feat(atenlib): aten function signature generator"
justinchuby d49a69d
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby c7940b2
Update on "feat(atenlib): aten function signature generator"
justinchuby 4c2c2c6
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby ed6baf7
Update on "feat(atenlib): aten function signature generator"
justinchuby e5e4910
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby 1353d34
Update on "feat(atenlib): aten function signature generator"
justinchuby 5cb196e
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby b373478
Update on "feat(atenlib): aten function signature generator"
justinchuby c6a54d1
feat(atenlib): typing module
justinchuby d035429
Update base for Update on "feat(atenlib): typing module"
justinchuby 6f6a031
Update on "feat(atenlib): typing module"
justinchuby 370059a
Update base for Update on "feat(atenlib): typing module"
justinchuby 7c2c722
Update on "feat(atenlib): typing module"
justinchuby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| """Typings for function definitions.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import TypeVar, Union | ||
|
|
||
| from onnxscript import DOUBLE, FLOAT, FLOAT16, INT8, INT16, INT32, INT64 | ||
|
|
||
| FloatType = Union[FLOAT16, FLOAT, DOUBLE] | ||
| IntType = Union[INT8, INT16, INT32, INT64] | ||
|
|
||
| TFloat = TypeVar("TFloat", bound=FloatType) | ||
| TInt = TypeVar("TInt", bound=IntType) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.