You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some way of being able to refer to local variables. We'd need to be able to distinguish local variables from the usual shapes variables. In the above example I've used $, but we could use some other syntax. Or maybe we can magically guess?
Feature request
Allow access to local variables in shape constraints.
Motivation
For example, to be able to define that shapes of parameters must match class variables:
Proposal
Some way of being able to refer to local variables. We'd need to be able to distinguish local variables from the usual shapes variables. In the above example I've used
$
, but we could use some other syntax. Or maybe we can magically guess?Maybe we can get inspiration for syntax from the popular einops library: https://github.com/arogozhnikov/einops
The text was updated successfully, but these errors were encountered: