Post

Replies

Boosts

Views

Activity

Comment on CoreML Crashed in iOS18 Beta
Yes; The code is as below: _ if (@available(iOS 16.0, )) { MLModelConfiguration config = [MLModelConfiguration alloc]; config.computeUnits = MLComputeUnitsCPUAndNeuralEngine; _model = [MLModel modelWithContentsOfURL:compileUrl configuration:config error:&error]; } else { model = [MLModel modelWithContentsOfURL:compileUrl error:&error]; } Thanks.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Jun ’24
Comment on CoreML Crashed in iOS18 Beta
Yes; The code is as below: _ if (@available(iOS 16.0, )) { MLModelConfiguration config = [MLModelConfiguration alloc]; config.computeUnits = MLComputeUnitsCPUAndNeuralEngine; _model = [MLModel modelWithContentsOfURL:compileUrl configuration:config error:&error]; } else { model = [MLModel modelWithContentsOfURL:compileUrl error:&error]; } Thanks.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Replies
Boosts
Views
Activity
Jun ’24