Skip to content

Commit bd17b81

Browse files
committed
Move wandb import
1 parent d5826bb commit bd17b81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/modules/maskingmodel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import gin
88
import torch
9-
import wandb
109
from torch import nn
1110
import pytorch_lightning as L
1211

@@ -407,6 +406,8 @@ def training_step(self, batch, batch_idx):
407406
)
408407

409408
elif self.first_coverage and batch_idx == first_coverage_steps:
409+
import wandb
410+
410411
# Print the histogram you can check it in the wandb dashboard (log section)
411412
for key, value in self.tokens_accumulator.items():
412413
self.logger.experiment.log({f"{key}_histogram": wandb.Histogram(value)})

0 commit comments

Comments
 (0)