Class 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.String getEnginePath()
      Getter for enginePath field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • getEnginePath

        public java.lang.String getEnginePath()
        Getter for enginePath field. See constructor documentation for more information about the field.
        Returns:
        enginePath