Class LibUtils

java.lang.Object
ai.djl.pytorch.jni.LibUtils

public final class LibUtils extends Object
Utilities for finding the PyTorch Engine binary on the System.

The Engine will be searched for in a variety of locations in the following order:

  1. In the path specified by the PYTORCH_LIBRARY_PATH environment variable
  2. In a jar file location in the classpath. These jars can be created with the pytorch-native module.
  • Method Details

    • loadLibrary

      public static void loadLibrary()
    • getVersion

      public static String getVersion()
    • getLibtorchPath

      public static String getLibtorchPath()