Skip to content

Commit

Permalink
Remove logging of raw tensors
Browse files Browse the repository at this point in the history
  • Loading branch information
JD-ETH authored Jan 1, 2024
1 parent 2554f5f commit 73d16d5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions trak/traker.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,8 @@ def finalize_features(

g = ch.as_tensor(self.saver.current_store["grads"], device=self.device)
xtx = self.score_computer.get_xtx(g)
self.logger.debug(f"XTX is {xtx}")

features = self.score_computer.get_x_xtx_inv(g, xtx)
self.logger.debug(f"Features are {features}")
self.saver.current_store["features"][:] = features.to(self.dtype).cpu()
if del_grads:
self.saver.del_grads(model_id)
Expand Down

0 comments on commit 73d16d5

Please sign in to comment.