Improve the format in Support Library examples.

PiperOrigin-RevId: 283055924
Change-Id: I89b3062cb0bc07afc888d1b7774cf5d54aeda2e0
This commit is contained in:
Xunkai Zhang 2019-11-29 07:13:52 -08:00 committed by TensorFlower Gardener
parent 99cb9fd68d
commit 764a3ab93a

View File

@ -114,8 +114,9 @@ try{
}
// Running inference
if(null != tflite)
if(null != tflite) {
tflite.run(tImage.getBuffer(), probabilityBuffer.getBuffer());
}
```
### Accessing the result
@ -229,5 +230,5 @@ TensorProcessor probabilityProcessor =
new TensorProcessor.Builder().add(new NormalizeOp(0, 255)).build();
// Post-processor which dequantize the result
TensorBuffer dequantizedBuffer = probabilityProcessor.process(probabilityBuffer)
TensorBuffer dequantizedBuffer = probabilityProcessor.process(probabilityBuffer);
```