Skip to content

Commit a9b7906

Browse files
committed
Continue appeasing flake8
1 parent 54d675e commit a9b7906

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Pilot3/P3B7/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _download(self):
200200
self._preprocess(raw_data)
201201

202202
def _preprocess(self, raw_data):
203-
print(f"Preprocessing data...")
203+
print(f'{"Preprocessing data..."}')
204204
self._make_processed_dirs()
205205

206206
with open(raw_data, 'rb') as f:
@@ -215,7 +215,7 @@ def _preprocess(self, raw_data):
215215
self._save_split('train', corpus.train, y_train)
216216
self._save_split('valid', corpus.valid, y_valid)
217217
self._save_vocab(corpus.vocab)
218-
print(f"Done!")
218+
print(f'{"Done!"}')
219219

220220
def _save_split(self, split, data, target):
221221
target = self._create_target(target)

Pilot3/P3B7/prune.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ def compute_mask(self, t, default_mask):
128128
# Check that the amount of units to prune is not > than the number of
129129
# parameters in t
130130
tensor_size = t.nelement()
131-
tNP = t.detach().cpu().numpy()
132131
# Compute number of units to prune: amount if int,
133132
# else amount * tensor_size
134133
nparams_toprune = _compute_nparams_toprune(self.amount, tensor_size)

0 commit comments

Comments
 (0)