I - the model input typeO - the model output typepublic class Criteria<I,O>
extends java.lang.Object
Criteria class contains search criteria to look up a ZooModel.| Modifier and Type | Class and Description |
|---|---|
static class |
Criteria.Builder<I,O>
A Builder to construct a
Criteria. |
| Modifier and Type | Method and Description |
|---|---|
static Criteria.Builder<?,?> |
builder()
Creates a builder to build a
Criteria. |
ai.djl.Application |
getApplication()
Returns the application of the model.
|
java.util.Map<java.lang.String,java.lang.Object> |
getArguments()
Returns the override configurations of the model loading arguments.
|
java.lang.String |
getArtifactId()
Returns the artifactId of the
ModelLoader to be searched. |
ai.djl.Device |
getDevice()
Returns the
Device of the model to be loaded on. |
java.lang.String |
getEngine()
Returns the engine name.
|
java.util.Map<java.lang.String,java.lang.String> |
getFilters()
Returns the search filters that must match the properties of the model.
|
java.lang.String |
getGroupId()
Returns the groupId of the
ModelZoo to be searched. |
java.lang.Class<I> |
getInputClass()
Returns the input data type.
|
java.lang.Class<O> |
getOutputClass()
Returns the output data type.
|
ai.djl.util.Progress |
getProgress()
Returns the optional
Progress for the model loading. |
ai.djl.translate.Translator<I,O> |
getTranslator()
Returns the optional
Translator to be used for ZooModel. |
public ai.djl.Application getApplication()
public java.lang.Class<I> getInputClass()
public java.lang.Class<O> getOutputClass()
public java.lang.String getEngine()
public ai.djl.Device getDevice()
Device of the model to be loaded on.Device of the model to be loaded onpublic java.lang.String getGroupId()
ModelZoo to be searched.ModelZoo to be searchedpublic java.lang.String getArtifactId()
ModelLoader to be searched.ModelLoader to be searchedpublic java.util.Map<java.lang.String,java.lang.String> getFilters()
public java.util.Map<java.lang.String,java.lang.Object> getArguments()
public ai.djl.translate.Translator<I,O> getTranslator()
Translator to be used for ZooModel.Translator to be used for ZooModelpublic ai.djl.util.Progress getProgress()
Progress for the model loading.Progress for the model loadingpublic static Criteria.Builder<?,?> builder()
Criteria.