validate_expected_param_dtype¶
- torchtune.training.validate_expected_param_dtype(named_params: Iterable[Tuple[str, Parameter]], dtype: dtype, exclude_param_names: Optional[List[str]] = None) None [source]¶
Validates that all input parameters have the expected dtype.
- Parameters:
- Raises:
ValueError – If any parameter has a different dtype than dtype.