patrick-kidger / torchtyping

Type annotations and dynamic checking for a tensor's shape, dtype, names, etc.
Apache License 2.0
1.39k stars 33 forks source link

Restrict valid identifiers in names. #3

Closed patrick-kidger closed 3 years ago

patrick-kidger commented 3 years ago

Specifically to standard alphanumeric characters only. This will be very useful for forward compatibility when #2 is introduced, so we can easily detect which names are composites of others.

patrick-kidger commented 3 years ago

Realised that this is possible without that.