Add check to make sure input/output layer units are specified.