Improve the format in Support Library examples.
PiperOrigin-RevId: 283055924 Change-Id: I89b3062cb0bc07afc888d1b7774cf5d54aeda2e0
This commit is contained in:
parent
99cb9fd68d
commit
764a3ab93a
@ -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);
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user