Skip to content
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

Int dummy #160

Merged
merged 3 commits into from
May 1, 2024
Merged

Int dummy #160

merged 3 commits into from
May 1, 2024

Conversation

danielward27
Copy link
Owner

Some wrappers use a dummy scalar array to detect vmapped initialization. These were floats, which in some cases is annoying, for example they would be filtered alongside trainable parameters (although their gradient would be zero). I have changed these arrays to integers for now. Fixed a minor bug where if unwrap was called on an object created with a vmapped init, and the AbstractUnwrappable contained no arrays to vectorize over, then the dimensions from the dummy were inferred in the wrong order.

@danielward27 danielward27 merged commit 039e40b into main May 1, 2024
1 check passed
@danielward27 danielward27 deleted the int_dummy branch May 1, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant