UMLDeformerTrainingModel::GetNeedsResampling

Check whether we need to resample the inputs and outputs, or if we can use a cached version.