Skip to content

Commit

Permalink
Remove log from Android side
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Apr 10, 2024
1 parent 1a8061f commit 505e887
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ private void convertBitmapToByteBuffer(Bitmap bitmap) {
return;
}
imgData.rewind();
long startTime = SystemClock.uptimeMillis();

// Convert pixel values to be float from 0 to 1
float[][][][] input = new float[1][ImageClassifier.DIM_IMG_SIZE_X][ImageClassifier.DIM_IMG_SIZE_Y][3];
Expand Down Expand Up @@ -179,8 +178,6 @@ private void convertBitmapToByteBuffer(Bitmap bitmap) {
}
byteBuffer.rewind();
imgData.put(byteBuffer);
long endTime = SystemClock.uptimeMillis();
Timber.tag(TAG).d("Timecost to put values into ByteBuffer: " + Long.toString(endTime - startTime));
} catch (BufferOverflowException exc) {
Timber.tag(TAG).w("Exception while converting to byte buffer: " + exc);
}
Expand Down

0 comments on commit 505e887

Please sign in to comment.