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.
Jun ’24