This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
piiswrong
suggested changes
Apr 2, 2018
python/mxnet/ndarray/ndarray.py
Outdated
ctypes.byref(handle))) | ||
check_call(_LIB.MXNDArrayReshape64(self.handle, | ||
len(shape), | ||
c_array(ctypes.c_longlong, shape), |
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.
does ctypes have c_int64?
python/mxnet/ndarray/ndarray.py
Outdated
0 Dimensions in shape will be copied from original shape, i.e. | ||
if x.shape == (3, 4, 5), x.reshape((0, 20)).shape will be (3, 20). | ||
|
||
Some dimensions of the shape can take special values from the set {0, -1, -2, -3, -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.
paste the doc here instead of using link
rahul003
pushed a commit
to rahul003/mxnet
that referenced
this pull request
Jun 4, 2018
* refactor reshapeshape * add extended reshape to c_api * fix for windows * avoid arr buf for windows * update
zheng-da
pushed a commit
to zheng-da/incubator-mxnet
that referenced
this pull request
Jun 28, 2018
* refactor reshapeshape * add extended reshape to c_api * fix for windows * avoid arr buf for windows * update
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
extend ndarray in-place reshape
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes