Class OutputConfig


  • public class OutputConfig
    extends Object
    • Constructor Detail

      • OutputConfig

        public OutputConfig​(@NonNull
                            @NonNull SameDiff sd)
    • Method Detail

      • output

        public OutputConfig output​(@NonNull
                                   @NonNull String... outputs)
        Add required outputs
      • data

        public OutputConfig data​(@NonNull
                                 @NonNull DataSet data)
        Set the data to use as input.
      • listeners

        public OutputConfig listeners​(@NonNull
                                      @NonNull Listener... listeners)
        Add listeners for this operation
      • exec

        public Map<String,​INDArray> exec()
        Do inference and return the results. Uses concatenation on the outputs of execBatches() which may cause issues with some inputs. RNNs with variable time series length and CNNs with variable image sizes will most likely have issues.
      • execBatches

        public List<Map<String,​INDArray>> execBatches()
        Do inference and return the results in batches.
      • execSingle

        public INDArray execSingle()
        Do inference and return the results for the single output variable specified. Only works if exactly one output is specified. Uses concatenation on the outputs of execBatches() which may cause issues with some inputs. RNNs with variable time series length and CNNs with variable image sizes will most likely have issues.
      • execSingleBatches

        public List<INDArray> execSingleBatches()
        Do inference and return the results (in batches) for the single output variable specified. Only works if exactly one output is specified.