Package ai.konduit.serving.model.loader
Interface ModelLoader<T>
-
- Type Parameters:
T- the type of the model
public interface ModelLoader<T>Model loader. Given a path knows how to load a model of a specified type from disk.- Author:
- Adam Gibson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TloadModel()Load the modelio.vertx.core.buffer.BuffersaveModel(T model)Save a model as a buffer
-
-
-
Method Detail
-
saveModel
io.vertx.core.buffer.Buffer saveModel(T model)
Save a model as a buffer- Parameters:
model- the model to save- Returns:
- a buffer representing the binary representation of the model
-
loadModel
T loadModel() throws java.lang.Exception
Load the model- Returns:
- the loaded model
- Throws:
java.lang.Exception- if an error occurs loading the model
-
-