Home
last modified time | relevance | path

Searched refs:flatSize (Results 1 – 5 of 5) sorted by relevance

/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/tensorbuffer/
DTensorBuffer.java37 protected int flatSize = -1; field in TensorBuffer
149 return flatSize; in getFlatSize()
308 int flatSize = computeFlatSize(shape); in loadBuffer() local
310 (buffer.limit() == getTypeSize() * flatSize), in loadBuffer()
387 if (flatSize == newFlatSize) { in allocateMemory()
392 flatSize = newFlatSize; in allocateMemory()
393 buffer = ByteBuffer.allocateDirect(flatSize * getTypeSize()); in allocateMemory()
402 int flatSize = computeFlatSize(shape); in assertShapeIsCorect() local
404 (buffer.limit() == getTypeSize() * flatSize), in assertShapeIsCorect()
DTensorBufferUint8.java49 byte[] byteArr = new byte[flatSize]; in getFloatArray()
52 float[] floatArr = new float[flatSize]; in getFloatArray()
53 for (int i = 0; i < flatSize; i++) { in getFloatArray()
68 byte[] byteArr = new byte[flatSize]; in getIntArray()
71 int[] intArr = new int[flatSize]; in getIntArray()
72 for (int i = 0; i < flatSize; i++) { in getIntArray()
DTensorBufferFloat.java50 float[] arr = new float[flatSize]; in getFloatArray()
66 float[] floatArr = new float[flatSize]; in getIntArray()
69 int[] intArr = new int[flatSize]; in getIntArray()
70 for (int i = 0; i < flatSize; i++) { in getIntArray()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/
DImageConversions.java113 int flatSize = w * h * 3; in convertBitmapToTensorBuffer() local
123 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(flatSize); in convertBitmapToTensorBuffer()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/label/
DTensorLabel.java124 int flatSize = tensorBuffer.getFlatSize(); in getMapWithTensorBuffer() local
132 int subArrayLength = flatSize / shape[labeledAxis] * typeSize; in getMapWithTensorBuffer()