allocate static method
Pointer<TfLiteCoreMlDelegateOptions>
allocate(
- TfLiteCoreMlDelegateEnabledDevices enabledDevices,
- int coremlVersion,
- int maxDelegatedPartitions,
- 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;
}