Skip to content

Commit

Permalink
Fix loss cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cooney committed Jan 30, 2024
1 parent e30dd43 commit 06edb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparse_autoencoder/train/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def run_pipeline(
)

# Get the loss fn
loss_fn = self.autoencoder.loss_metric.clone()
loss_fn = self.loss.clone()
loss_fn.keep_batch_dim = True

with tqdm(
Expand Down

0 comments on commit 06edb9e

Please sign in to comment.