-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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.