Package ai.onnxruntime.providers
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 TypeMethodDescriptionaggregateToInt(EnumSet<E> set) Converts an EnumSet of flags into the value expected by the C API.intgetValue()Gets the underlying flag value.
-
Method Details
-
getValue
int getValue()Gets the underlying flag value.- Returns:
- The flag value.
-
aggregateToInt
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
-