public class GloveWordEmbeddingModelLoader
extends ai.djl.repository.zoo.BaseModelLoader
| Constructor and Description |
|---|
GloveWordEmbeddingModelLoader(ai.djl.repository.Repository repository)
Constructs a
GloveWordEmbeddingModelLoader given the repository. |
| Modifier and Type | Method and Description |
|---|---|
protected ai.djl.Model |
createModel(java.lang.String name,
ai.djl.Device device,
ai.djl.repository.Artifact artifact,
java.util.Map<java.lang.String,java.lang.Object> arguments,
java.lang.String engine) |
ai.djl.repository.zoo.ZooModel<ai.djl.ndarray.NDList,ai.djl.ndarray.NDList> |
loadModel()
Loads the model with the given search filters.
|
public GloveWordEmbeddingModelLoader(ai.djl.repository.Repository repository)
GloveWordEmbeddingModelLoader given the repository.repository - the repository to load the model fromprotected ai.djl.Model createModel(java.lang.String name,
ai.djl.Device device,
ai.djl.repository.Artifact artifact,
java.util.Map<java.lang.String,java.lang.Object> arguments,
java.lang.String engine)
throws java.io.IOException
createModel in class ai.djl.repository.zoo.BaseModelLoaderjava.io.IOExceptionpublic ai.djl.repository.zoo.ZooModel<ai.djl.ndarray.NDList,ai.djl.ndarray.NDList> loadModel()
throws java.io.IOException,
ai.djl.repository.zoo.ModelNotFoundException,
ai.djl.MalformedModelException
java.io.IOException - for various exceptions loading data from the repositoryai.djl.repository.zoo.ModelNotFoundException - if no model with the specified criteria is foundai.djl.MalformedModelException - if the model data is malformed