Skip to content

Commit

Permalink
fix: argmax INVALID if no data
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Sep 10, 2024
1 parent 062cdec commit ac21b62
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public int getArrayLength() {

public long argMax(final int offset) {

if (data.length == 0)
return Label.INVALID;
return this.argMax[offset];
}

Expand Down

0 comments on commit ac21b62

Please sign in to comment.