-
Notifications
You must be signed in to change notification settings - Fork 58
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
Change TTensor etc. to be constrained | fix(typing) #769
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're here, there seems to be a lot of repetition of groups of primitive tensor types that should compose more cleanly. I suggested one inline as an example, but I think it's worth auditing the rest.
INT64, | ||
UINT8, | ||
) | ||
TTensorOrString = TypeVar( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TTensorOrString = TypeVar("TTensorOrString", TTensor, STRING)
"TRealUnlessFloat16OrInt8", bound=Union[DOUBLE, FLOAT, INT16, INT32, INT64] | ||
"TRealUnlessFloat16OrInt8", DOUBLE, FLOAT, INT16, INT32, INT64 | ||
) | ||
TrealOrUInt8 = TypeVar( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Letter-case seems non-uniform. Change to TRealOrUInt8
?
Is there any concern with this PR? |
So some tests failed but I didn’t get a chance to look at them yet |
Fixes #707