Skip to content

Commit 73ed568

Browse files
committed
v1.8.0
1 parent c4f43aa commit 73ed568

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__/
55
.vscode/
66
.DS_Store
77
profile.txt
8+
Archive.zip
89

910
# C extensions
1011
*.so

Archive.zip

-244 KB
Binary file not shown.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ Args:
184184
185185
device (torch.Device):
186186
Uses this torch device for model and input_data.
187-
If not specified, uses result of torch.cuda.is_available().
187+
If not specified, uses the dtype of input_data if given, or the
188+
parameters of the model. Otherwise, uses the result of
189+
torch.cuda.is_available().
188190
Default: None
189191
190192
dtypes (List[torch.dtype]):

torchinfo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"Units",
1212
"Verbosity",
1313
)
14-
__version__ = "1.7.2"
14+
__version__ = "1.8.0"

torchinfo/torchinfo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ class name as the key. If the forward pass is an expensive operation,
140140
141141
device (torch.Device):
142142
Uses this torch device for model and input_data.
143-
If not specified, uses result of torch.cuda.is_available().
143+
If not specified, uses the dtype of input_data if given, or the
144+
parameters of the model. Otherwise, uses the result of
145+
torch.cuda.is_available().
144146
Default: None
145147
146148
dtypes (List[torch.dtype]):

0 commit comments

Comments
 (0)