public class OrtModel
extends ai.djl.BaseModel
OrtModel is the ONNX Runtime implementation of Model.
OrtModel contains all the methods in Model to load and process a model. In addition, it provides ONNX Runtime Specific functionality
| Modifier and Type | Method and Description |
|---|---|
void |
load(java.io.InputStream is,
java.util.Map<java.lang.String,?> options) |
void |
load(java.nio.file.Path modelPath,
java.lang.String prefix,
java.util.Map<java.lang.String,?> options) |
close, describeInput, describeOutput, finalize, getArtifact, getArtifact, getArtifactAsStream, getArtifactNames, getBlock, getDataType, getModelPath, getName, getNDManager, getProperty, newPredictor, newTrainer, paramPathResolver, readParameters, save, setBlock, setDataType, setModelDir, setProperty, toStringpublic void load(java.nio.file.Path modelPath,
java.lang.String prefix,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException,
ai.djl.MalformedModelException
java.io.IOExceptionai.djl.MalformedModelExceptionpublic void load(java.io.InputStream is,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException,
ai.djl.MalformedModelException
load in interface ai.djl.Modelload in class ai.djl.BaseModeljava.io.IOExceptionai.djl.MalformedModelException