Numpy数组形状信息
发布时间
阅读量:
阅读量
在调试涉及NDArray类型数据的相关信息时,常常会对调试信息中所显示的shapeInfo长度产生疑问。
通过查阅源代码后发现:
/** * Creates the shape information buffer
* given the shape,stride
* @param shape the shape for the buffer
* @param stride the stride for the buffer
* @param offset the offset for the buffer
* @param elementWiseStride the element wise stride for the buffer
* @param order the order for the buffer
* @return the shape information buffer given the parameters
*/
public static DataBuffer createShapeInformation(int[] shape, int[] stride, long offset, int elementWiseStride,
全部评论 (0)
还没有任何评论哟~
