for (int i = 0; i < (int)labelShape[0]; i ++) {
int llength = 0;
// label不对齐处理
for (int j = 0; j < (int)labelShape[2]; j ++) {
//Exception in thread "main" java.lang.IllegalArgumentException: getRow() can be called on 2D arrays only 这里 reshapedLabels 有三个维度,不能用.getRow(i)和getColumn(j)方法
INDArray label = reshapedLabels.getRow(i).getColumn(j);
代码报错
for (int i = 0; i < (int)labelShape[0]; i ++) { int llength = 0; // label不对齐处理 for (int j = 0; j < (int)labelShape[2]; j ++) { //Exception in thread "main" java.lang.IllegalArgumentException: getRow() can be called on 2D arrays only 这里 reshapedLabels 有三个维度,不能用.getRow(i)和getColumn(j)方法 INDArray label = reshapedLabels.getRow(i).getColumn(j);