update docstrings

This commit is contained in:
evonneng committed 2022-09-13 03:48:35 +00:00
1 parent dd287f5209
commit a914387cf8
1 file changed
+2
+2
View File
@@ -29,6 +29,8 @@ def get_dict_to_torch(stuff: Any, device: Union[torch.device, str] = "cpu", excl
Args:
stuff: things to convert to torch
device: machine to put the "stuff" on
exclude: list of keys to skip over transferring to device
"""
if isinstance(stuff, dict):
for k, v in stuff.items():