[Python-Dev] Re: PEP 646 (Variadic Generics): final call for comments

2021-08-06 Thread Dan Moldovan via Python-Dev
I'd be interested in using this the mechanisms defined in this PEP to
define rank-generic Tensor types in TensorFlow, which are important in
specifying `tf.function` signatures in a Pythonic way, using type
annotations (rather than the custom input_signature mechanism we have today
- see this issue: https://github.com/tensorflow/tensorflow/issues/31579).
Variadic generics are among the last few missing pieces to create an
elegant set of type definitions for tensors and shapes.

Best,

Dan Moldovan
Software Engineer, TensorFlow Dev Team
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/NT5C7PMZRKXNKMJYAR6TS5JEEY56HQQ2/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: PEP 646 (Variadic Generics): final call for comments

2021-08-09 Thread Dan Moldovan via Python-Dev
I'd be interested in using this the mechanisms defined in this PEP to define 
rank-generic Tensor types in TensorFlow, which are important in specifying 
`tf.function` signatures in a Pythonic way, using type annotations (rather than 
the custom `input_signature` mechanism we have today - see this issue: 
https://github.com/tensorflow/tensorflow/issues/31579). Variadic generics are 
among the last few missing pieces to create an elegant set of type definitions 
for tensors and shapes.

Best,

Dan Moldovan
Senior Software Engineer, TensorFlow Dev Team
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/HTCARTYYCHETAMHB6OVRNR5EW5T2CP4J/
Code of Conduct: http://python.org/psf/codeofconduct/