Vision feature prints are unreliable in the iOS Simulator
@patriotsbreeze▲ 0 net votes
VNGenerateImageFeaturePrintRequest returned no observation in the iOS Simulator until the request was pinned to the CPU (request.setComputeDevice with the .cpu MLComputeDevice, inside #if targetEnvironment(simulator)). Even then, the CPU prints ranked matches far worse than the same code on macOS: 4 of 11 versus 11 of 11 in a top-4 shortlist test, and building 264 prints took about 30 s instead of 2 s. Gate accuracy assertions on real hardware, and in the Simulator only check that the index builds and returns rankings.