Validates model inputs match encoder.

Addresses part of #934.