public class ThreadedModelBuilder extends Object implements AsyncModelBuilder
Constructor and Description |
---|
ThreadedModelBuilder(int threads)
Constructs a new instance of threaded inference model builder.
|
Modifier and Type | Method and Description |
---|---|
<I extends Serializable,O extends Serializable> |
build(ModelReader reader,
ModelParser<I,O,?> parser)
Builds asynchronous inference model using specified model reader and model parser.
|
public ThreadedModelBuilder(int threads)
threads
- Number of threads to be utilized for model inference.public <I extends Serializable,O extends Serializable> Model<I,Future<O>> build(ModelReader reader, ModelParser<I,O,?> parser)
build
in interface AsyncModelBuilder
I
- Type of model input.O
- Type of model output.reader
- Model reader.parser
- Model parser.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024