Skip to content

Commit

Permalink
Update PredictorUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
apete committed Jan 12, 2019
1 parent afeec4e commit c6570e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public static void add(DefaultData data, PrimitiveMatrix.DenseReceiver receiver)
List<Integer> shapeList = data.getTensor().getShapeList();

int rows = shapeList.get(0);
int columns = shapeList.get(1);
int cols = shapeList.get(1);

for (int i = 0; i < rows * columns; i++) {
receiver.add(i / columns, i % columns, valuesList.get(i));
for (int i = 0; i < rows * cols; i++) {
receiver.add(i / cols, i % cols, valuesList.get(i));
}

} else if (data.getDataOneofCase() == DataOneofCase.NDARRAY) {
Expand Down

0 comments on commit c6570e7

Please sign in to comment.