Package io.scanbot.common.util
Class TensorFlowUtils
-
- All Implemented Interfaces:
public final class TensorFlowUtilsProvides TensorFlow utils.
-
-
Constructor Summary
Constructors Constructor Description TensorFlowUtils()
-
Method Summary
Modifier and Type Method Description final static UnitprepareTensorFlow(Boolean allowXnnpackAcceleration, Boolean allowGpuAcceleration)Prepares TensorFlow features and applies known restrictions on some devices. final static UnitprecompilePrograms(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.
-
-
-
-