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 3518c35 commit aa1c04d
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 aa1c04d

Please sign in to comment.