Data type and device transfers¶ metatrain.utils.transfer.batch_to(systems: List[System], targets: Dict[str, TensorMap], extra_data: Dict[str, TensorMap] | None = None, dtype: dtype | None = None, device: device | None = None)[source]¶ Changes the systems and targets to the specified floating point data type. Parameters: systems (List[System]) – List of systems. targets (Dict[str, TensorMap]) – Dictionary of targets. dtype (dtype | None) – Desired floating point data type. extra_data (Dict[str, TensorMap] | None) device (device | None)