Closed 285220927 closed 1 year ago
int[] data = {1, 2, 2, 3, 11, 22, 22, 33, 1, 2, 2, 3, 11, 22, 22, 33};
NDArray array = manager.create(data, new Shape(2, 3, 2));
Feel free to reopen the issue if you have further question
In python, we can use np.array([[[1, 2], [2, 3], [11, 22], [22, 33]], [[1, 2], [2, 3], [11, 22], [22, 33]]]) to create a three-dimensional array. The create method in djl can only support two-dimensional arrays. Is there a better way to create it besides reshape?