Class InplaceParallelInference.ModelHolder

    • Field Detail

      • sourceModel

        protected org.deeplearning4j.nn.api.Model sourceModel
      • workers

        protected int workers
      • replicas

        protected List<org.deeplearning4j.nn.api.Model> replicas
      • rootDevice

        protected boolean rootDevice
      • targetDeviceId

        protected int targetDeviceId
      • queue

        protected final BlockingQueue<org.deeplearning4j.nn.api.Model> queue
      • isCG

        protected transient boolean isCG
      • isMLN

        protected transient boolean isMLN
    • Constructor Detail

      • ModelHolder

        protected ModelHolder()
    • Method Detail

      • init

        protected void init()
      • releaseModel

        protected void releaseModel​(org.deeplearning4j.nn.api.Model model)
      • output

        protected org.nd4j.linalg.api.ndarray.INDArray[] output​(org.nd4j.linalg.api.ndarray.INDArray[] input,
                                                                org.nd4j.linalg.api.ndarray.INDArray[] inputMasks)
      • updateModel

        protected void updateModel​(@NonNull
                                   @NonNull org.deeplearning4j.nn.api.Model model)