public static class Interpreter.Options extends Object
| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
Interpreter.Options |
setAllowFp16PrecisionForFp32(boolean allow)
Sets whether to allow float16 precision for FP32 calculation when possible.
|
Interpreter.Options |
setNumThreads(int numThreads)
Sets the number of threads to be used for ops that support multi-threading.
|
Interpreter.Options |
setUseNNAPI(boolean useNNAPI)
Sets whether to use NN API (if available) for op execution.
|
public Interpreter.Options setNumThreads(int numThreads)
public Interpreter.Options setUseNNAPI(boolean useNNAPI)
public Interpreter.Options setAllowFp16PrecisionForFp32(boolean allow)
Copyright © 2019. All rights reserved.