Core ML stateful prediction and tensor preprocessing
