Class ConcurrentModel<T extends InferenceModel>

Object
ConcurrentModel<T>
Type Parameters:
T - the type of model

public final class ConcurrentModel<T extends InferenceModel> extends Object
An instance of model that can be used concurrently for inference.
Author:
Owen Feehan
  • Constructor Details

    • ConcurrentModel

      public ConcurrentModel(T model, boolean gpu)
      Creates a new ConcurrentModel instance.
      Parameters:
      model - The underlying model.
      gpu - Whether model is using the GPU or not.
  • Method Details

    • getModel

      public T getModel()
      The underlying model.
    • isGpu

      public boolean isGpu()
      Whether model is using the GPU or not.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object