Skip to content

Commit

Permalink
fix check in neuron sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom-md committed Dec 14, 2023
1 parent e5f198e commit 809becd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sae_training/sparse_autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def resample_neurons(
print(
"Warning: it does not seem as if resetting the Adam parameters worked, there are shapes mismatches"
)
if v[v_key][:, replacement_indices].abs().max().item() > 1e-6:
if v[v_key][:, is_dead].abs().max().item() > 1e-6:
print(
"Warning: it does not seem as if resetting the Adam parameters worked"
)
Expand Down

0 comments on commit 809becd

Please sign in to comment.