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.