fromValue static method

OrtCompileApiFlags fromValue(
  1. int value
)

Implementation

static OrtCompileApiFlags fromValue(int value) => switch (value) {
  0 => OrtCompileApiFlags_NONE,
  1 => OrtCompileApiFlags_ERROR_IF_NO_NODES_COMPILED,
  2 => OrtCompileApiFlags_ERROR_IF_OUTPUT_FILE_EXISTS,
  _ => throw ArgumentError('Unknown value for OrtCompileApiFlags: $value'),
};