Skip to content

Commit

Permalink
Print device
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Jul 5, 2024
1 parent 27aa722 commit 57442ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kronfluence/computer/factor_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def fit_covariance_matrices(
if torch.is_tensor(obj) or (
hasattr(obj, 'data') and torch.is_tensor(obj.data)) and obj.device == torch.device(
"cuda"):
print(type(obj), obj.size())
print(type(obj), obj.size(), obj.device)
except:
pass

Expand Down Expand Up @@ -345,7 +345,7 @@ def fit_covariance_matrices(
if torch.is_tensor(obj) or (
hasattr(obj, 'data') and torch.is_tensor(obj.data)) and obj.device == torch.device(
"cuda"):
print(type(obj), obj.size())
print(type(obj), obj.size(), obj.device)
except:
pass

Expand Down

0 comments on commit 57442ed

Please sign in to comment.