-
Notifications
You must be signed in to change notification settings - Fork 139
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 N shape bugs #157
Fix N shape bugs #157
Conversation
nequip/data/dataset.py
Outdated
N = N.unsqueeze(-1) | ||
assert N.ndim == 2 | ||
assert N.shape == (len(arr), 1) | ||
assert arr.ndim == 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make N the same shape as arr from the 2nd axis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean?
nequip/data/dataset.py
Outdated
data_dim = arr.shape[1] | ||
arr = arr / N | ||
assert arr.shape == (len(N), data_dim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data_dim = arr.shape[1] | |
arr = arr / N | |
assert arr.shape == (len(N), data_dim) | |
data_dim = arr.shape[1:] | |
arr = arr / N | |
assert arr.shape == (len(N), data_dim) |
No description provided.