This is an automated email from the ASF dual-hosted git repository. jxie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push: new 7fb34a1 Added comment for clarity that numpy.ndarray.flatten behaves differently than nd.flatten (#9748) 7fb34a1 is described below commit 7fb34a1f7a15157e4fef4b4d49a9dfb9597b0a11 Author: Sina Afrooze <sina....@gmail.com> AuthorDate: Fri Feb 9 10:51:57 2018 -0800 Added comment for clarity that numpy.ndarray.flatten behaves differently than nd.flatten (#9748) --- src/operator/tensor/matrix_op.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/operator/tensor/matrix_op.cc b/src/operator/tensor/matrix_op.cc index 7439fb4..06478ca 100644 --- a/src/operator/tensor/matrix_op.cc +++ b/src/operator/tensor/matrix_op.cc @@ -191,6 +191,9 @@ NNVM_REGISTER_OP(Flatten) For an input array with shape ``(d1, d2, ..., dk)``, `flatten` operation reshapes the input array into an output array of shape ``(d1, d2*...*dk)``. +Note that the bahavior of this function is different from numpy.ndarray.flatten, +which behaves similar to mxnet.ndarray.reshape((-1,)). + Example:: x = [[ -- To stop receiving notification emails like this one, please contact j...@apache.org.