Problem with model inference using accelerate

@muellerzr