def _adjust_default_input_to_fp16(self) -> None:
        """
        An utility function that sets the default input dtype to fp16
        """

        def _adjust_default_input_to_fp16_helper(inputs: InputType):
            assert isinstance(inputs, list), "inputs must be type of list"
            # Adjust inputs dtype to fp16
            for val in inputs:
                if isinstance(val, (StateType, TensorType)) and val.dtype is None:
                    val.dtype = types.fp16

        _adjust_default_input_to_fp16_helper(self.inputs)
        _adjust_default_input_to_fp16_helper(self.states)

        An utility function that sets the default input dtype to fp16
        
coremltools/converters/mil/frontend/torch/converter.py