Package io.scanbot.sdk.ml
Class TensorRtAccelerator
- java.lang.Object
-
- io.scanbot.sdk.ml.Accelerator
-
- io.scanbot.sdk.ml.TensorRtAccelerator
-
public class TensorRtAccelerator extends Accelerator
TensorRT accelerator.
-
-
Constructor Summary
Constructors Constructor Description TensorRtAccelerator()Constructs TensorRtAccelerator with default parameters.TensorRtAccelerator(java.lang.String enginePath)Constructs TensorRtAccelerator with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEnginePath()Getter for enginePath field.
-
-
-
Constructor Detail
-
TensorRtAccelerator
public TensorRtAccelerator(java.lang.String enginePath)
Constructs TensorRtAccelerator with the given params.- Parameters:
enginePath- Directory in which the TensorRT engine files are stored. The SDK automatically generates the files if they are absent. Note, that it might take a few minutes to generate the engine files, therefore it is recommended to set the path to a directory that is not deleted between app launches. If the path is empty, the SDK will generate the engine files in the current working directory. Default is ""
-
TensorRtAccelerator
public TensorRtAccelerator()
Constructs TensorRtAccelerator with default parameters.
-
-