public class BatchInputParser extends Object
INDArray
minibatch.
Uses InputAdapter specified by name
allowing conversion of each type of input file's
raw content to an INDArray
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchInputParser.BatchPartInfo |
| Constructor and Description |
|---|
BatchInputParser() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(io.vertx.core.buffer.Buffer input,
String name,
ConverterArgs params,
io.vertx.ext.web.RoutingContext routingContext)
Use the converter specified
by name to convert a
raw
Buffer
to a proper input for inference |
org.datavec.api.records.Record[] |
createBatch(io.vertx.ext.web.RoutingContext routingContext)
Create a batch from the
RoutingContext |
public org.datavec.api.records.Record[] createBatch(io.vertx.ext.web.RoutingContext routingContext)
throws IOException
RoutingContextroutingContext - the routing context to create the batch fromIOException - I/O Exceptionpublic Object convert(io.vertx.core.buffer.Buffer input, String name, ConverterArgs params, io.vertx.ext.web.RoutingContext routingContext) throws IOException
Buffer
to a proper input for inferenceinput - the raw contentname - the name of the input
converter to useparams - the params to use where neededroutingContext - RoutingContextIOException - I/O ExceptionCopyright © 2022. All rights reserved.