allocate static method

Pointer<TfLiteCoreMlDelegateOptions> allocate(
  1. TfLiteCoreMlDelegateEnabledDevices enabledDevices,
  2. int coremlVersion,
  3. int maxDelegatedPartitions,
  4. int minNodesPerPartition,
)

Implementation

static Pointer<TfLiteCoreMlDelegateOptions> allocate(
    TfLiteCoreMlDelegateEnabledDevices enabledDevices,
    int coremlVersion,
    int maxDelegatedPartitions,
    int minNodesPerPartition) {
  final result = calloc<TfLiteCoreMlDelegateOptions>();
  result.ref
    ..enabledDevices = enabledDevices.index
    ..coremlVersion = coremlVersion
    ..maxDelegatedPartitions = maxDelegatedPartitions
    ..minNodesPerPartition = minNodesPerPartition;
  return result;
}