Enum InferenceMode

    • Enum Constant Detail

      • SEQUENTIAL

        public static final InferenceMode SEQUENTIAL
        input will be passed into the model as is
      • BATCHED

        public static final InferenceMode BATCHED
        input will be included into the batch if computation device is busy, and executed immediately otherwise
      • INPLACE

        public static final InferenceMode INPLACE
        Inference will applied in the calling thread instead of workers. Worker models will be using shared parameters on per-device basis.
    • Method Detail

      • values

        public static InferenceMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InferenceMode c : InferenceMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InferenceMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null