mirror of
https://github.com/labmlai/annotated_deep_learning_paper_implementations.git
synced 2025-08-26 08:41:23 +08:00
cleanup log activations
This commit is contained in:
@ -71,9 +71,8 @@ class Configs(MNISTConfigs, TrainValidConfigs):
|
||||
if self.mode.is_train:
|
||||
tracker.add_global_step(len(data))
|
||||
|
||||
# Run the model and specify whether to log the activations
|
||||
with self.mode.update(is_log_activations=batch_idx.is_last):
|
||||
output = self.model(data)
|
||||
# Run the model
|
||||
output = self.model(data)
|
||||
|
||||
# Calculate the loss
|
||||
loss = self.loss_func(output, target)
|
||||
|
Reference in New Issue
Block a user