Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
KexinFeng committed Jun 8, 2023
1 parent 5cdf977 commit dab75c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api/src/main/java/ai/djl/ndarray/NDList.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ public NDArray get(String name) {
return null;
}

/** {@inheritDoc} */
@Override
public NDArray get(int index) {
index = index + (index < 0 ? size() : 0);
return super.get(index);
}

/**
* Removes the first occurrence of the specified element from this NDList if it is present.
*
Expand Down Expand Up @@ -276,13 +283,6 @@ public NDList subNDList(int fromIndex) {
return subList(fromIndex, size());
}

/** {@inheritDoc} */
@Override
public NDArray get(int index) {
index = index + (index < 0 ? size() : 0);
return super.get(index);
}

/** {@inheritDoc} */
@Override
public NDList subList(int fromIndex, int toIndex) {
Expand Down

0 comments on commit dab75c9

Please sign in to comment.