-
Notifications
You must be signed in to change notification settings - Fork 14
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
Updating DimVar's value best practice #19
Comments
@finngaida sorry for the delayed reply. I think there was a Also, can you tell me more about which |
@ekshaks same issue here. For example, the text sequence dimension [batch_size, sequence_size, hidden_size] can vary from batch to batch (padded only at batch level). It would be super helpful to make some kind of dynamic dimension variables. BTW, thanks for this awesome package! |
Thanks @ChenghaoMou and @finngaida for comments on the issue. Added Let me know if this works for you. |
That sounds great, especially the |
So I'm declaring global
DimVars
(without a hardcoded value) and later at runtime want to update their values based on some hyperparams to do shape assertions.I'm aware I can just manipulate their
._val
propery, but that seems a bit hacky to me, what's the intended workflow for this kind of problem?The text was updated successfully, but these errors were encountered: