-
Notifications
You must be signed in to change notification settings - Fork 4k
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 shape of loaded preprocessed features (Fixes #1738 and #1772) #1872
Conversation
for i in range(len(features)): | ||
features[i] = np.reshape(features[i], [features_len[i], -1]) | ||
features[i].shape = [features_len[i]+2*numcontext, numcep] |
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.
Setting .shape
instead of using np.reshape
guarantees it won't copy the data, it'll instead fail if the reshape can't be done without copying.
@@ -2,7 +2,7 @@ pandas | |||
progressbar2 | |||
python-utils | |||
tensorflow == 1.12.0 | |||
numpy | |||
numpy == 1.15.4 |
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.
If it's because of 1.16.1 erroring, this should be fixed now: piwheels/piwheels#127
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.
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.
LGTM but I'm not sure about the numpy stuff.
Merged as discussed on IRC. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.