| Package | Description |
|---|---|
| org.nd4j.remote |
| Modifier and Type | Method and Description |
|---|---|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.inferenceAdapter(InferenceAdapter<I,O> inferenceAdapter)
This method defines InferenceAdapter implementation, which will be used to convert object of Input type to the set of INDArray(s), and for conversion of resulting INDArray(s) into object of Output type
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.inputAdapter(InputAdapter<I> inputAdapter)
This method allows you to specify InputAdapter to be used for inference
PLEASE NOTE: This method is optional, and will require OutputAdapter
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.inputDeserializer(JsonDeserializer<I> deserializer)
This method defines JsonDeserializer instance to be used to convert JSON passed through HTTP into actual object of input type, that will be fed into SameDiff model
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.orderedInputNodes(List<String> args)
This method defines the order of placeholders to be filled with INDArrays provided by Deserializer
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.orderedInputNodes(String... args)
This method defines the order of placeholders to be filled with INDArrays provided by Deserializer
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.orderedOutputNodes(List<String> args)
This method defines list of graph nodes to be extracted after feed-forward pass and used as OutputAdapter input
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.orderedOutputNodes(String... args)
This method defines list of graph nodes to be extracted after feed-forward pass and used as OutputAdapter input
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.outputAdapter(OutputAdapter<O> outputAdapter)
This method allows you to specify OutputAdapter to be used for inference
PLEASE NOTE: This method is optional, and will require InputAdapter defined
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.outputSerializer(JsonSerializer<O> serializer)
This method defines JsonSerializer instance to be used to convert object of output type into JSON format, so it could be sent over the wire
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.port(int port)
This method allows to configure HTTP port used for serving
PLEASE NOTE: port must be free and be in range regular TCP/IP ports range
|
SameDiffJsonModelServer.Builder<I,O> |
SameDiffJsonModelServer.Builder.sdModel(SameDiff sameDiff) |
Copyright © 2019. All rights reserved.