Skip to content

Commit

Permalink
Remove dependency of proj_matrix during scoring (#61)
Browse files Browse the repository at this point in the history
finalize feature deletes the proj_matrix, but basic projector assumes it exists. remove dependency.
  • Loading branch information
JD-ETH authored Jan 5, 2024
1 parent 1febdc9 commit e5cbe1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trak/projectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def free_memory(self):
def get_generator_states(self):
self.generator_states = []
self.seeds = []
self.jl_size = self.proj_matrix.numel()
self.jl_size = self.grad_dim * self.block_size

for i in range(self.num_blocks):
s = self.seed + int(1e3) * i + int(1e5) * self.model_id
Expand Down

0 comments on commit e5cbe1e

Please sign in to comment.