In this example, you'll create the configuration for a server. The same as the previous example, you'll print the configuration to demonstrate the step in details that will help you see the difference and notice the configuration contents.
Let's create a configuration by adding logging step in a sequence pipeline and print the output to JSON:
SequencePipelinesequencePipelineWithLoggingStep=SequencePipeline.builder().add(new LoggingStep())//add logging step into pipeline.build();System.out.format("----------%n"+"Pipeline with a Logging step output%n"+"------------%n"+"%s%n"+"------------%n%n",sequencePipelineWithLoggingStep.toJson());
Call for default or empty inference configuration and print the output to JSON: