Package io.scanbot.common.util
Class TensorFlowUtils
-
- All Implemented Interfaces:
public final class TensorFlowUtils
Provides TensorFlow utils.
-
-
Constructor Summary
Constructors Constructor Description TensorFlowUtils()
-
Method Summary
Modifier and Type Method Description final static Unit
prepareTensorFlow(Boolean allowXnnpackAcceleration, Boolean allowGpuAcceleration)
Prepares TensorFlow features and applies known restrictions on some devices. final static Unit
precompilePrograms(String codeCacheDirPath)
Precompile GPU ML models. -
-
Method Detail
-
prepareTensorFlow
final static Unit prepareTensorFlow(Boolean allowXnnpackAcceleration, Boolean allowGpuAcceleration)
Prepares TensorFlow features and applies known restrictions on some devices.
-
precompilePrograms
final static Unit precompilePrograms(String codeCacheDirPath)
Precompile GPU ML models.
-
-
-
-