Interface OrtFlags

All Known Implementing Classes:
CoreMLFlags, NNAPIFlags

public interface OrtFlags
An interface for bitset enums that should be aggregated into a single integer.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <E extends Enum<E> & OrtFlags>
    int
    Converts an EnumSet of flags into the value expected by the C API.
    int
    Gets the underlying flag value.
  • Method Details

    • getValue

      int getValue()
      Gets the underlying flag value.
      Returns:
      The flag value.
    • aggregateToInt

      static <E extends Enum<E> & OrtFlags> int aggregateToInt(EnumSet<E> set)
      Converts an EnumSet of flags into the value expected by the C API.
      Type Parameters:
      E - The enum type to aggregate.
      Parameters:
      set - The enum set to aggregate the values from.
      Returns:
      The aggregated values