Add better errors for for inference arguments.
Add better errors for for inference arguments.