用法:
property shape
数组维度的元组。
例子:
>>> x = mx.nd.array([1, 2, 3, 4]) >>> x.shape (4L,) >>> y = mx.nd.zeros((2, 3, 4)) >>> y.shape (2L, 3L, 4L)
相关用法
- Python mxnet.ndarray.NDArray.size用法及代码示例
- Python mxnet.ndarray.NDArray.slice_assign_scalar用法及代码示例
- Python mxnet.ndarray.NDArray.slice_assign用法及代码示例
- Python mxnet.ndarray.NDArray.ndim用法及代码示例
- Python mxnet.ndarray.NDArray.reshape用法及代码示例
- Python mxnet.ndarray.NDArray.ctx用法及代码示例
- Python mxnet.ndarray.NDArray.copy用法及代码示例
- Python mxnet.ndarray.NDArray.to_dlpack_for_write用法及代码示例
- Python mxnet.ndarray.NDArray.flatten用法及代码示例
- Python mxnet.ndarray.NDArray.to_dlpack_for_read用法及代码示例
- Python mxnet.ndarray.NDArray.broadcast_to用法及代码示例
- Python mxnet.ndarray.NDArray.astype用法及代码示例
- Python mxnet.ndarray.NDArray.expand_dims用法及代码示例
- Python mxnet.ndarray.NDArray.broadcast_like用法及代码示例
- Python mxnet.ndarray.NDArray.copyto用法及代码示例
- Python mxnet.ndarray.NDArray.dtype用法及代码示例
- Python mxnet.ndarray.NDArray.as_in_context用法及代码示例
- Python mxnet.ndarray.NDArray.asscalar用法及代码示例
- Python mxnet.ndarray.NDArray.T用法及代码示例
- Python mxnet.ndarray.NDArray.asnumpy用法及代码示例
注:本文由纯净天空筛选整理自apache.org大神的英文原创作品 mxnet.ndarray.NDArray.shape。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。