diff --git a/engines/pytorch/pytorch-engine/src/main/java/ai/djl/pytorch/engine/PtNDArrayEx.java b/engines/pytorch/pytorch-engine/src/main/java/ai/djl/pytorch/engine/PtNDArrayEx.java index a9e58814d0bb..17e775658ea1 100644 --- a/engines/pytorch/pytorch-engine/src/main/java/ai/djl/pytorch/engine/PtNDArrayEx.java +++ b/engines/pytorch/pytorch-engine/src/main/java/ai/djl/pytorch/engine/PtNDArrayEx.java @@ -862,7 +862,6 @@ public NDList multiBoxDetection( ptemp[i][j] = outputs[(int) sorter[i][1]][j]; } } - int nkeep = sorter.length; for (int i = 0; i < nkeep; ++i) {