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

fix normalization by number of examples #80

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

hwijeen
Copy link
Collaborator

@hwijeen hwijeen commented Jan 10, 2024

This PR corrects how to get the number of examples from a batch.
The bug is that len(data) does not give the number of examples as it is reshaped to 2d matrix of (bs*seq_len, feat_dim) in line 32.

@hwijeen hwijeen requested a review from sangkeun00 January 10, 2024 11:01
@sangkeun00 sangkeun00 merged commit 9f1d8b0 into main Jan 10, 2024
3 checks passed
@sangkeun00 sangkeun00 deleted the fixNormalization branch May 21, 2024 01:03
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.

2 participants