public class LiteModuleLoader
extends java.lang.Object
| Constructor and Description |
|---|
LiteModuleLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Module |
load(java.lang.String modelPath)
Loads a serialized TorchScript module from the specified path on the disk to run on CPU.
|
static Module |
load(java.lang.String modelPath,
java.util.Map<java.lang.String,java.lang.String> extraFiles,
Device device)
Loads a serialized TorchScript module from the specified path on the disk to run on specified
device.
|
public static Module load(java.lang.String modelPath, java.util.Map<java.lang.String,java.lang.String> extraFiles, Device device)
public static Module load(java.lang.String modelPath)
modelPath - path to file that contains the serialized TorchScript module.Module object which owns torch::jit::mobile::Module.