OK, I have learnt why it was failing to do anything.
I had set it up within a Task, using
Task {
await withTaskGroup(of: Void.self) { group in
for i in 0...numberoftasks - 1 {
group.addTask {
autoreleasepool {
self.functiontomakemodel()
}
}
}
}
}
If I remove the Task, and just keep the loop it works.
Now I just need to learn how to adjust this to use multiple cores with the new OS, any help would be much appreciated.
Topic:
Machine Learning & AI
SubTopic:
Core ML
Tags: