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. |
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. |
Block |
getBlock()
|
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.String |
getModelName()
Returns the optional model name to be used for
ZooModel. |
ModelZoo |
getModelZoo()
Returns the
ModelZoo to be searched. |
java.util.Map<java.lang.String,java.lang.String> |
getOptions()
Returns the model loading options.
|
java.lang.Class<O> |
getOutputClass()
Returns the output data type.
|
ai.djl.util.Progress |
getProgress()
Returns the optional
Progress for the model loading. |
TranslatorFactory<I,O> |
getTranslatorFactory()
Returns the optional
TranslatorFactory to be used for ZooModel. |
java.lang.String |
toString() |
public Application getApplication()
public java.lang.Class<I> getInputClass()
public java.lang.Class<O> getOutputClass()
public java.lang.String getEngine()
public 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 ModelZoo getModelZoo()
ModelZoo to be searched.ModelZoo 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 java.util.Map<java.lang.String,java.lang.String> getOptions()
public TranslatorFactory<I,O> getTranslatorFactory()
TranslatorFactory to be used for ZooModel.TranslatorFactory to be used for ZooModelpublic java.lang.String getModelName()
ZooModel.ZooModelpublic ai.djl.util.Progress getProgress()
Progress for the model loading.Progress for the model loadingpublic java.lang.String toString()
toString in class java.lang.Objectpublic static Criteria.Builder<?,?> builder()
Criteria.