From 30e6470be01d8a6a3b6660b7d947fdd671008830 Mon Sep 17 00:00:00 2001 From: Aymen Sekhri <39885103+AymenSe@users.noreply.github.com> Date: Thu, 9 Jun 2022 15:57:59 +0100 Subject: [PATCH] Removing unused attributes This line of code self.checkpoint_interval = params['checkpoint_interval'] had no impact on the code, therefore I think it's better to allow the code to be clean by eliminating the unused variables. --- trainer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/trainer.py b/trainer.py index 51a05e6..ae9f0e4 100644 --- a/trainer.py +++ b/trainer.py @@ -20,7 +20,6 @@ def __init__(self, online_network, target_network, predictor, optimizer, device, self.m = params['m'] self.batch_size = params['batch_size'] self.num_workers = params['num_workers'] - self.checkpoint_interval = params['checkpoint_interval'] _create_model_training_folder(self.writer, files_to_same=["./config/config.yaml", "main.py", 'trainer.py']) @torch.no_grad()