Skip to content

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 38 commits into from
Dec 6, 2022
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 Nov 22, 2022
40af0b4
Update base for Update on "feat(atenlib): establish the aten-lib dire…
justinchuby Nov 22, 2022
ee554d7
Update on "feat(atenlib): establish the aten-lib directory"
justinchuby Nov 22, 2022
fa8ce18
feat(atenlib): Create sample functions and tests
justinchuby Nov 23, 2022
6d426b5
Update base for Update on "feat(atenlib): Create sample functions and…
justinchuby Nov 23, 2022
bb9fbee
Update on "feat(atenlib): Create sample functions and tests with OpInfo"
justinchuby Nov 23, 2022
0aed28e
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
91aa327
Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
00a081b
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
fce8072
Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
af56008
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
8c0b370
Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
bfeaefc
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
8dc3d15
Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
46aa719
Update base for Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
d87f309
Update on "feat(atenlib): create tests with OpInfo"
justinchuby Nov 23, 2022
afa50e3
feat: aten function signature generator
justinchuby Nov 29, 2022
1b2674d
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 29, 2022
1861734
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 29, 2022
64810de
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 29, 2022
421e9e4
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 29, 2022
c566e24
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 29, 2022
15ecd59
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 29, 2022
2ab2fc3
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 29, 2022
91fb612
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 29, 2022
d49a69d
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 30, 2022
c7940b2
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 30, 2022
4c2c2c6
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 30, 2022
ed6baf7
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 30, 2022
e5e4910
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Nov 30, 2022
1353d34
Update on "feat(atenlib): aten function signature generator"
justinchuby Nov 30, 2022
5cb196e
Update base for Update on "feat(atenlib): aten function signature gen…
justinchuby Dec 5, 2022
b373478
Update on "feat(atenlib): aten function signature generator"
justinchuby Dec 5, 2022
c6a54d1
feat(atenlib): typing module
justinchuby Dec 5, 2022
d035429
Update base for Update on "feat(atenlib): typing module"
justinchuby Dec 6, 2022
6f6a031
Update on "feat(atenlib): typing module"
justinchuby Dec 6, 2022
370059a
Update base for Update on "feat(atenlib): typing module"
justinchuby Dec 6, 2022
7c2c722
Update on "feat(atenlib): typing module"
justinchuby Dec 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions onnxscript/function_libs/torch_aten/typing.py
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)